MenuStrip.CreateAccessibilityInstance MenuStrip.CreateAccessibilityInstance MenuStrip.CreateAccessibilityInstance MenuStrip.CreateAccessibilityInstance Method

定義

為控制項建立新的協助工具物件。Creates a new accessibility object for the control.

protected:
 override System::Windows::Forms::AccessibleObject ^ CreateAccessibilityInstance();
protected override System.Windows.Forms.AccessibleObject CreateAccessibilityInstance ();
override this.CreateAccessibilityInstance : unit -> System.Windows.Forms.AccessibleObject
Protected Overrides Function CreateAccessibilityInstance () As AccessibleObject

傳回

備註

如果沒有明確呼叫 CreateAccessibilityInstance 方法,將會在參考 Control.AccessibilityObject 屬性時呼叫該方法。If you do not explicitly call the CreateAccessibilityInstance method, it will be called when the Control.AccessibilityObject property is referenced.

注意

若要取得或設定Control.AccessibilityObject屬性,您必須將參考加入與 .NET Framework Accessibility一起安裝的元件。To get or set the Control.AccessibilityObject property, you must add a reference to the Accessibility assembly installed with the .NET Framework.

如需使用CreateAccessibilityInstance的程式碼範例, Control.CreateAccessibilityInstance請參閱。For a code example of using CreateAccessibilityInstance, see Control.CreateAccessibilityInstance.

適用於