88 references to AccessibleRole
UIAutomationClientsideProviders (88)
MS\Internal\AutomationProxies\Accessible.cs (11)
302
internal
AccessibleRole
Role { get { return GetRole(_acc, _idChild); } }
479
AccessibleRole
role = Role;
480
if (role !=
AccessibleRole
.Window)
484
if (role !=
AccessibleRole
.Client || Description != "MSAAHTML Registered Handler")
598
internal static
AccessibleRole
GetRole(IAccessible acc, int idChild)
600
AccessibleRole
rval;
608
rval = (role is int) ? (
AccessibleRole
)(int)role :
AccessibleRole
.Client;
616
rval =
AccessibleRole
.Client;
1483
AccessibleRole
ownRole = GetRole(old, NativeMethods.CHILD_SELF);
1510
AccessibleRole
role = GetRole(accChild, NativeMethods.CHILD_SELF);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (44)
196
AccessibleRole
role = acc.Role;
197
if (role ==
AccessibleRole
.Client || role ==
AccessibleRole
.Window)
1026
AccessibleRole
role = _acc.Role;
1027
if (role ==
AccessibleRole
.Text)
1060
if (_acc.Role ==
AccessibleRole
.Window)
1142
_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role ==
AccessibleRole
.Window ? RootStatus.Root : RootStatus.NotRoot;
1265
public RoleCtrlType(
AccessibleRole
role, ControlType ctrlType)
1271
public
AccessibleRole
_role; // MSAA role
1279
new RoleCtrlType(
AccessibleRole
.Application, ControlType.Window),
1280
new RoleCtrlType(
AccessibleRole
.ButtonDropDown, ControlType.SplitButton),
1281
new RoleCtrlType(
AccessibleRole
.ButtonMenu, ControlType.MenuItem),
1282
new RoleCtrlType(
AccessibleRole
.CheckButton, ControlType.CheckBox),
1283
new RoleCtrlType(
AccessibleRole
.ColumnHeader, ControlType.Header),
1284
new RoleCtrlType(
AccessibleRole
.Combobox, ControlType.ComboBox),
1285
new RoleCtrlType(
AccessibleRole
.Document, ControlType.Document),
1286
new RoleCtrlType(
AccessibleRole
.Graphic, ControlType.Image),
1287
new RoleCtrlType(
AccessibleRole
.Link, ControlType.Hyperlink),
1288
new RoleCtrlType(
AccessibleRole
.List, ControlType.List),
1289
new RoleCtrlType(
AccessibleRole
.ListItem, ControlType.ListItem),
1290
new RoleCtrlType(
AccessibleRole
.MenuBar, ControlType.MenuBar),
1291
new RoleCtrlType(
AccessibleRole
.MenuItem, ControlType.MenuItem),
1292
new RoleCtrlType(
AccessibleRole
.MenuPopup, ControlType.Menu),
1293
new RoleCtrlType(
AccessibleRole
.Outline, ControlType.Tree),
1294
new RoleCtrlType(
AccessibleRole
.OutlineItem, ControlType.TreeItem),
1295
new RoleCtrlType(
AccessibleRole
.PageTab, ControlType.TabItem),
1296
new RoleCtrlType(
AccessibleRole
.PageTabList, ControlType.Tab),
1297
new RoleCtrlType(
AccessibleRole
.Pane, ControlType.Pane),
1298
new RoleCtrlType(
AccessibleRole
.ProgressBar, ControlType.ProgressBar),
1299
new RoleCtrlType(
AccessibleRole
.PushButton, ControlType.Button),
1300
new RoleCtrlType(
AccessibleRole
.RadioButton, ControlType.RadioButton),
1301
new RoleCtrlType(
AccessibleRole
.RowHeader, ControlType.Header),
1302
new RoleCtrlType(
AccessibleRole
.ScrollBar, ControlType.ScrollBar),
1303
new RoleCtrlType(
AccessibleRole
.Separator, ControlType.Separator),
1304
new RoleCtrlType(
AccessibleRole
.Slider, ControlType.Slider),
1305
new RoleCtrlType(
AccessibleRole
.SpinButton, ControlType.Spinner),
1306
new RoleCtrlType(
AccessibleRole
.SplitButton, ControlType.SplitButton),
1307
new RoleCtrlType(
AccessibleRole
.StaticText, ControlType.Text),
1308
new RoleCtrlType(
AccessibleRole
.StatusBar, ControlType.StatusBar),
1309
new RoleCtrlType(
AccessibleRole
.Table, ControlType.Table),
1311
new RoleCtrlType(
AccessibleRole
.TitleBar, ControlType.TitleBar),
1312
new RoleCtrlType(
AccessibleRole
.ToolBar, ControlType.ToolBar),
1313
new RoleCtrlType(
AccessibleRole
.Tooltip, ControlType.ToolTip),
1314
new RoleCtrlType(
AccessibleRole
.Window, ControlType.Window)
MS\Internal\AutomationProxies\WindowsButton.cs (3)
418
if (accParent.Role ==
AccessibleRole
.Grouping)
701
acc.Role ==
AccessibleRole
.RadioButton)
741
acc.Role ==
AccessibleRole
.RadioButton &&
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (8)
53
case
AccessibleRole
.Combobox:
57
case
AccessibleRole
.SpinButton:
60
case
AccessibleRole
.Grouping:
63
case
AccessibleRole
.StatusBar:
94
case
AccessibleRole
.CheckButton:
97
case
AccessibleRole
.Grouping:
100
case
AccessibleRole
.PushButton:
103
case
AccessibleRole
.RadioButton:
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (2)
47
AccessibleRole
role = Accessible.GetRole(acc, item + 1);
53
if (role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
162
AccessibleRole
role = Accessible.GetRole(acc, _itemParent + 1);
165
if (role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
545
if ((accWind != null) && (accWind.Role ==
AccessibleRole
.Window))
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
114
if (accChild != null && accChild.Role !=
AccessibleRole
.PushButton)
MS\Internal\AutomationProxies\WindowsToolbar.cs (7)
71
AccessibleRole
role = acc.Role;
72
if (role ==
AccessibleRole
.MenuBar || role ==
AccessibleRole
.MenuPopup)
249
AccessibleRole
role = acc.Role;
250
if (role ==
AccessibleRole
.MenuBar || role ==
AccessibleRole
.MenuPopup)
318
if (acc.Role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsToolbarAsMenu.cs (3)
41
AccessibleRole
role = acc.Role;
43
if (role ==
AccessibleRole
.MenuBar)
48
else if (role ==
AccessibleRole
.MenuPopup)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (2)
41
AccessibleRole
role = acc.Role;
42
if (role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsTreeView.cs (2)
1532
isCheckbox = (
AccessibleRole
)overlay ==
AccessibleRole
.CheckButton;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
328
return hr == NativeMethods.S_OK && acc != null ? acc.Role ==
AccessibleRole
.SpinButton : false;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
196
if ((acc.Role !=
AccessibleRole
.SpinButton) || (acc.ChildCount != 2))