Export (0) Print
Expand All
Expand Minimize

Control.AccessibleRole Property

Gets or sets the accessible role of the control

[Visual Basic]
Public Property AccessibleRole As AccessibleRole
[C#]
public AccessibleRole AccessibleRole {get; set;}
[C++]
public: __property AccessibleRole get_AccessibleRole();
public: __property void set_AccessibleRole(AccessibleRole);
[JScript]
public function get AccessibleRole() : AccessibleRole;
public function set AccessibleRole(AccessibleRole);

Property Value

The AccessibleRole of the control. The default is Default.

Exceptions

Exception Type Condition
InvalidEnumArgumentException The value assigned is not one of the AccessibleRole values.

Remarks

The AccessibleRole property describes what kind of user interface element an object is. If the control's role cannot be determined, the AccessibleRole property is set to AccessibleRole.Default.

For more information about properties of accessible objects, see the Content of Descriptive Properties topic in the Active Accessibility section of the MSDN Library.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Windows.Forms Namespace | AccessibleRole | AccessibleDescription | AccessibleName | AccessibleDefaultActionDescription | Role

Show:
© 2015 Microsoft