RadioButton.CreateAccessibilityInstance 方法

定義

RadioButton 控制項建立新的協助工具物件。Creates a new accessibility object for the RadioButton 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

傳回

AccessibleObject

控制項新的 RadioButton.RadioButtonAccessibleObjectA new RadioButton.RadioButtonAccessibleObject for the control.

備註

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

注意

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

給繼承者的注意事項

CreateAccessibilityInstance()在衍生類別中覆寫時,您不應該呼叫基類的 CreateAccessibilityInstance() 方法。When overriding CreateAccessibilityInstance() in a derived class, you should not call the base class's CreateAccessibilityInstance() method.

適用於