88 references to AccessibleRole
UIAutomationClientSideProviders (88)
MS\Internal\AutomationProxies\Accessible.cs (11)
292
internal
AccessibleRole
Role { get { return GetRole(_acc, _idChild); } }
469
AccessibleRole
role = Role;
470
if (role !=
AccessibleRole
.Window)
474
if (role !=
AccessibleRole
.Client || Description != "MSAAHTML Registered Handler")
587
internal static
AccessibleRole
GetRole(IAccessible acc, int idChild)
589
AccessibleRole
rval;
597
rval = (role is int) ? (
AccessibleRole
)(int)role :
AccessibleRole
.Client;
605
rval =
AccessibleRole
.Client;
1439
AccessibleRole
ownRole = GetRole(old, NativeMethods.CHILD_SELF);
1455
AccessibleRole
role = GetRole(accChild, NativeMethods.CHILD_SELF);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (44)
186
AccessibleRole
role = acc.Role;
187
if (role ==
AccessibleRole
.Client || role ==
AccessibleRole
.Window)
997
AccessibleRole
role = _acc.Role;
998
if (role ==
AccessibleRole
.Text)
1031
if (_acc.Role ==
AccessibleRole
.Window)
1113
_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role ==
AccessibleRole
.Window ? RootStatus.Root : RootStatus.NotRoot;
1236
public RoleCtrlType(
AccessibleRole
role, ControlType ctrlType)
1242
public
AccessibleRole
_role; // MSAA role
1250
new RoleCtrlType(
AccessibleRole
.Application, ControlType.Window),
1251
new RoleCtrlType(
AccessibleRole
.ButtonDropDown, ControlType.SplitButton),
1252
new RoleCtrlType(
AccessibleRole
.ButtonMenu, ControlType.MenuItem),
1253
new RoleCtrlType(
AccessibleRole
.CheckButton, ControlType.CheckBox),
1254
new RoleCtrlType(
AccessibleRole
.ColumnHeader, ControlType.Header),
1255
new RoleCtrlType(
AccessibleRole
.Combobox, ControlType.ComboBox),
1256
new RoleCtrlType(
AccessibleRole
.Document, ControlType.Document),
1257
new RoleCtrlType(
AccessibleRole
.Graphic, ControlType.Image),
1258
new RoleCtrlType(
AccessibleRole
.Link, ControlType.Hyperlink),
1259
new RoleCtrlType(
AccessibleRole
.List, ControlType.List),
1260
new RoleCtrlType(
AccessibleRole
.ListItem, ControlType.ListItem),
1261
new RoleCtrlType(
AccessibleRole
.MenuBar, ControlType.MenuBar),
1262
new RoleCtrlType(
AccessibleRole
.MenuItem, ControlType.MenuItem),
1263
new RoleCtrlType(
AccessibleRole
.MenuPopup, ControlType.Menu),
1264
new RoleCtrlType(
AccessibleRole
.Outline, ControlType.Tree),
1265
new RoleCtrlType(
AccessibleRole
.OutlineItem, ControlType.TreeItem),
1266
new RoleCtrlType(
AccessibleRole
.PageTab, ControlType.TabItem),
1267
new RoleCtrlType(
AccessibleRole
.PageTabList, ControlType.Tab),
1268
new RoleCtrlType(
AccessibleRole
.Pane, ControlType.Pane),
1269
new RoleCtrlType(
AccessibleRole
.ProgressBar, ControlType.ProgressBar),
1270
new RoleCtrlType(
AccessibleRole
.PushButton, ControlType.Button),
1271
new RoleCtrlType(
AccessibleRole
.RadioButton, ControlType.RadioButton),
1272
new RoleCtrlType(
AccessibleRole
.RowHeader, ControlType.Header),
1273
new RoleCtrlType(
AccessibleRole
.ScrollBar, ControlType.ScrollBar),
1274
new RoleCtrlType(
AccessibleRole
.Separator, ControlType.Separator),
1275
new RoleCtrlType(
AccessibleRole
.Slider, ControlType.Slider),
1276
new RoleCtrlType(
AccessibleRole
.SpinButton, ControlType.Spinner),
1277
new RoleCtrlType(
AccessibleRole
.SplitButton, ControlType.SplitButton),
1278
new RoleCtrlType(
AccessibleRole
.StaticText, ControlType.Text),
1279
new RoleCtrlType(
AccessibleRole
.StatusBar, ControlType.StatusBar),
1280
new RoleCtrlType(
AccessibleRole
.Table, ControlType.Table),
1282
new RoleCtrlType(
AccessibleRole
.TitleBar, ControlType.TitleBar),
1283
new RoleCtrlType(
AccessibleRole
.ToolBar, ControlType.ToolBar),
1284
new RoleCtrlType(
AccessibleRole
.Tooltip, ControlType.ToolTip),
1285
new RoleCtrlType(
AccessibleRole
.Window, ControlType.Window)
MS\Internal\AutomationProxies\WindowsButton.cs (3)
402
if (accParent.Role ==
AccessibleRole
.Grouping)
685
acc.Role ==
AccessibleRole
.RadioButton)
725
acc.Role ==
AccessibleRole
.RadioButton &&
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (8)
43
case
AccessibleRole
.Combobox:
47
case
AccessibleRole
.SpinButton:
50
case
AccessibleRole
.Grouping:
53
case
AccessibleRole
.StatusBar:
84
case
AccessibleRole
.CheckButton:
87
case
AccessibleRole
.Grouping:
90
case
AccessibleRole
.PushButton:
93
case
AccessibleRole
.RadioButton:
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (2)
36
AccessibleRole
role = Accessible.GetRole(acc, item + 1);
42
if (role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
154
AccessibleRole
role = Accessible.GetRole(acc, _itemParent + 1);
157
if (role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
526
if ((accWind != null) && (accWind.Role ==
AccessibleRole
.Window))
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
100
if (accChild != null && accChild.Role !=
AccessibleRole
.PushButton)
MS\Internal\AutomationProxies\WindowsToolbar.cs (7)
61
AccessibleRole
role = acc.Role;
62
if (role ==
AccessibleRole
.MenuBar || role ==
AccessibleRole
.MenuPopup)
239
AccessibleRole
role = acc.Role;
240
if (role ==
AccessibleRole
.MenuBar || role ==
AccessibleRole
.MenuPopup)
308
if (acc.Role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsToolbarAsMenu.cs (3)
34
AccessibleRole
role = acc.Role;
36
if (role ==
AccessibleRole
.MenuBar)
41
else if (role ==
AccessibleRole
.MenuPopup)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (2)
35
AccessibleRole
role = acc.Role;
36
if (role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsTreeView.cs (2)
1521
isCheckbox = (
AccessibleRole
)overlay ==
AccessibleRole
.CheckButton;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
311
return hr == NativeMethods.S_OK && acc != null ? acc.Role ==
AccessibleRole
.SpinButton : false;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
186
if ((acc.Role !=
AccessibleRole
.SpinButton) || (acc.ChildCount != 2))