The requested page is not available for selected version.
GetRole
Syntax
string GetRole()
Description
Retrieve the role of the control or HTML element.
Return Value
A string value specifying the retrieved role value.
Notes:
Role: (Uneditable field)
- For WPF, Role is the role property of the selected control - for example,
button
. - For Win32, Role is the win type property of the selected control - for example,
button
. - For iOS, Android this field is disabled.
- For Silverlight, Role is the class name property of the selected control - for example,
Button
. - For WinForms, Role is derived from the object’s class name. For instance, for the full class name of System.Windows.Forms.Button, the short name Button is displayed in the Role field.Tip:If the control role is unnecessary for the class mapping (because you want to apply the mapping to all controls of the specified native class), select the Ignore check box.
- For WPF, Role is the role property of the selected control - for example,