System.Windows.Forms.ToolStripButton.CreateAccessibilityInstance Method

Creates a new accessibility object for the System.Windows.Forms.ToolStripButton.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected override AccessibleObject CreateAccessibilityInstance ()

Returns

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

Remarks

If you do not explicitly call ToolStripButton.CreateAccessibilityInstance, it will be called when the ToolStripItem.AccessibilityObject property is referenced.

Note:

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

Requirements

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