Control.AccessibleRole 属性

定义

获取或设置控件的可访问角色。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 value assigned is not one of the AccessibleRole values.

注解

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.

适用于

另请参阅