Control.AccessibleRole Control.AccessibleRole Control.AccessibleRole Control.AccessibleRole Property

定義

取得或設定控制項的可存取角色。Gets or sets the accessible role of the control

public:
 property System::Windows::Forms::AccessibleRole AccessibleRole { System::Windows::Forms::AccessibleRole get(); void set(System::Windows::Forms::AccessibleRole value); };
public System.Windows.Forms.AccessibleRole AccessibleRole { get; set; }
member this.AccessibleRole : System.Windows.Forms.AccessibleRole with get, set
Public Property AccessibleRole As AccessibleRole

屬性值

AccessibleRole 的其中一個值。One of the values of AccessibleRole. 預設為 DefaultThe default is Default.

例外狀況

備註

AccessibleRole 屬性會描述物件是何種使用者介面項目。The AccessibleRole property describes what kind of user interface element an object is. 如果無法判斷控制項的角色,AccessibleRole 屬性會設定為 DefaultIf the control's role cannot be determined, the AccessibleRole property is set to Default.

如需可存取物件屬性的詳細資訊, 請參閱描述性屬性的內容For more information about properties of accessible objects, see Content of Descriptive Properties.

適用於

另請參閱