System.Windows.Forms.MenuStrip.CreateAccessibilityInstance Method

Creates a new accessibility object for the control.

Syntax

protected override AccessibleObject CreateAccessibilityInstance ()

Returns

A new System.Windows.Forms.AccessibleObject for the control.

Remarks

If you do not explicitly call the MenuStrip.CreateAccessibilityInstance method, it will be called when the Control.AccessibilityObject property is referenced.

Note:

To get or set the Control.AccessibilityObject property, you must add a reference to the Accessibility assembly installed with the .NET Framework.

For a code example of using MenuStrip.CreateAccessibilityInstance, see Control.CreateAccessibilityInstance.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0