ToolStripItem.AccessibleRole ToolStripItem.AccessibleRole ToolStripItem.AccessibleRole ToolStripItem.AccessibleRole Property

定义

获取或设置控件的辅助性角色,该角色指定控件的用户界面元素的类型。Gets or sets the accessible role of the control, which specifies the type of user interface element 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 AccessibleRole values. 默认值为 PushButtonThe default is PushButton.

异常

注解

AccessibleRole 属性描述对象是哪一种用户界面元素。The AccessibleRole property describes what kind of user interface element an object is. 如果无法确定控件的角色,则 AccessibleRole 属性将设置为 AccessibleRole.PushButtonIf the control's role cannot be determined, the AccessibleRole property is set to AccessibleRole.PushButton.

有关可访问对象的属性的详细信息,请参阅描述性属性的内容For more information about properties of accessible objects, see Content of Descriptive Properties.

有关示例,请参阅AccessibleObject类。For samples, see the AccessibleObject class.

适用于

另请参阅