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.

适用于

另请参阅