This documentation is archived and is not being maintained.

Control.AccessibleRole Property

Gets or sets the accessible role of the control

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

Property Value

The AccessibleRole of the control. The default is Default.


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


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.


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