88 references to AccessibleRole
UIAutomationClientSideProviders (88)
MS\Internal\AutomationProxies\Accessible.cs (11)
295
internal
AccessibleRole
Role { get { return GetRole(_acc, _idChild); } }
472
AccessibleRole
role = Role;
473
if (role !=
AccessibleRole
.Window)
477
if (role !=
AccessibleRole
.Client || Description != "MSAAHTML Registered Handler")
590
internal static
AccessibleRole
GetRole(IAccessible acc, int idChild)
592
AccessibleRole
rval;
600
rval = (role is int) ? (
AccessibleRole
)(int)role :
AccessibleRole
.Client;
608
rval =
AccessibleRole
.Client;
1442
AccessibleRole
ownRole = GetRole(old, NativeMethods.CHILD_SELF);
1458
AccessibleRole
role = GetRole(accChild, NativeMethods.CHILD_SELF);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (44)
188
AccessibleRole
role = acc.Role;
189
if (role ==
AccessibleRole
.Client || role ==
AccessibleRole
.Window)
999
AccessibleRole
role = _acc.Role;
1000
if (role ==
AccessibleRole
.Text)
1033
if (_acc.Role ==
AccessibleRole
.Window)
1115
_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role ==
AccessibleRole
.Window ? RootStatus.Root : RootStatus.NotRoot;
1238
public RoleCtrlType(
AccessibleRole
role, ControlType ctrlType)
1244
public
AccessibleRole
_role; // MSAA role
1252
new RoleCtrlType(
AccessibleRole
.Application, ControlType.Window),
1253
new RoleCtrlType(
AccessibleRole
.ButtonDropDown, ControlType.SplitButton),
1254
new RoleCtrlType(
AccessibleRole
.ButtonMenu, ControlType.MenuItem),
1255
new RoleCtrlType(
AccessibleRole
.CheckButton, ControlType.CheckBox),
1256
new RoleCtrlType(
AccessibleRole
.ColumnHeader, ControlType.Header),
1257
new RoleCtrlType(
AccessibleRole
.Combobox, ControlType.ComboBox),
1258
new RoleCtrlType(
AccessibleRole
.Document, ControlType.Document),
1259
new RoleCtrlType(
AccessibleRole
.Graphic, ControlType.Image),
1260
new RoleCtrlType(
AccessibleRole
.Link, ControlType.Hyperlink),
1261
new RoleCtrlType(
AccessibleRole
.List, ControlType.List),
1262
new RoleCtrlType(
AccessibleRole
.ListItem, ControlType.ListItem),
1263
new RoleCtrlType(
AccessibleRole
.MenuBar, ControlType.MenuBar),
1264
new RoleCtrlType(
AccessibleRole
.MenuItem, ControlType.MenuItem),
1265
new RoleCtrlType(
AccessibleRole
.MenuPopup, ControlType.Menu),
1266
new RoleCtrlType(
AccessibleRole
.Outline, ControlType.Tree),
1267
new RoleCtrlType(
AccessibleRole
.OutlineItem, ControlType.TreeItem),
1268
new RoleCtrlType(
AccessibleRole
.PageTab, ControlType.TabItem),
1269
new RoleCtrlType(
AccessibleRole
.PageTabList, ControlType.Tab),
1270
new RoleCtrlType(
AccessibleRole
.Pane, ControlType.Pane),
1271
new RoleCtrlType(
AccessibleRole
.ProgressBar, ControlType.ProgressBar),
1272
new RoleCtrlType(
AccessibleRole
.PushButton, ControlType.Button),
1273
new RoleCtrlType(
AccessibleRole
.RadioButton, ControlType.RadioButton),
1274
new RoleCtrlType(
AccessibleRole
.RowHeader, ControlType.Header),
1275
new RoleCtrlType(
AccessibleRole
.ScrollBar, ControlType.ScrollBar),
1276
new RoleCtrlType(
AccessibleRole
.Separator, ControlType.Separator),
1277
new RoleCtrlType(
AccessibleRole
.Slider, ControlType.Slider),
1278
new RoleCtrlType(
AccessibleRole
.SpinButton, ControlType.Spinner),
1279
new RoleCtrlType(
AccessibleRole
.SplitButton, ControlType.SplitButton),
1280
new RoleCtrlType(
AccessibleRole
.StaticText, ControlType.Text),
1281
new RoleCtrlType(
AccessibleRole
.StatusBar, ControlType.StatusBar),
1282
new RoleCtrlType(
AccessibleRole
.Table, ControlType.Table),
1284
new RoleCtrlType(
AccessibleRole
.TitleBar, ControlType.TitleBar),
1285
new RoleCtrlType(
AccessibleRole
.ToolBar, ControlType.ToolBar),
1286
new RoleCtrlType(
AccessibleRole
.Tooltip, ControlType.ToolTip),
1287
new RoleCtrlType(
AccessibleRole
.Window, ControlType.Window)
MS\Internal\AutomationProxies\WindowsButton.cs (3)
407
if (accParent.Role ==
AccessibleRole
.Grouping)
690
acc.Role ==
AccessibleRole
.RadioButton)
730
acc.Role ==
AccessibleRole
.RadioButton &&
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (8)
47
case
AccessibleRole
.Combobox:
51
case
AccessibleRole
.SpinButton:
54
case
AccessibleRole
.Grouping:
57
case
AccessibleRole
.StatusBar:
88
case
AccessibleRole
.CheckButton:
91
case
AccessibleRole
.Grouping:
94
case
AccessibleRole
.PushButton:
97
case
AccessibleRole
.RadioButton:
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (2)
40
AccessibleRole
role = Accessible.GetRole(acc, item + 1);
46
if (role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
155
AccessibleRole
role = Accessible.GetRole(acc, _itemParent + 1);
158
if (role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
529
if ((accWind != null) && (accWind.Role ==
AccessibleRole
.Window))
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
103
if (accChild != null && accChild.Role !=
AccessibleRole
.PushButton)
MS\Internal\AutomationProxies\WindowsToolbar.cs (7)
64
AccessibleRole
role = acc.Role;
65
if (role ==
AccessibleRole
.MenuBar || role ==
AccessibleRole
.MenuPopup)
242
AccessibleRole
role = acc.Role;
243
if (role ==
AccessibleRole
.MenuBar || role ==
AccessibleRole
.MenuPopup)
311
if (acc.Role ==
AccessibleRole
.MenuItem)
MS\Internal\AutomationProxies\WindowsToolbarAsMenu.cs (3)
35
AccessibleRole
role = acc.Role;
37
if (role ==
AccessibleRole
.MenuBar)
42
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)
1523
isCheckbox = (
AccessibleRole
)overlay ==
AccessibleRole
.CheckButton;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
315
return hr == NativeMethods.S_OK && acc != null ? acc.Role ==
AccessibleRole
.SpinButton : false;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
188
if ((acc.Role !=
AccessibleRole
.SpinButton) || (acc.ChildCount != 2))