88 references to AccessibleRole
UIAutomationClientSideProviders (88)
MS\Internal\AutomationProxies\Accessible.cs (11)
288
internal
AccessibleRole
Role { get { return GetRole(_acc, _idChild); } }
462
AccessibleRole
role = Role;
463
if (role !=
AccessibleRole
.Window)
467
if (role !=
AccessibleRole
.Client || Description != "MSAAHTML Registered Handler")
571
internal static
AccessibleRole
GetRole(IAccessible acc, int idChild)
573
AccessibleRole
rval;
581
rval = (role is int) ? (
AccessibleRole
)(int)role :
AccessibleRole
.Client;
589
rval =
AccessibleRole
.Client;
1414
AccessibleRole
ownRole = GetRole(old, NativeMethods.CHILD_SELF);
1430
AccessibleRole
role = GetRole(accChild, NativeMethods.CHILD_SELF);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (44)
183
AccessibleRole
role = acc.Role;
184
if (role ==
AccessibleRole
.Client || role ==
AccessibleRole
.Window)
994
AccessibleRole
role = _acc.Role;
995
if (role ==
AccessibleRole
.Text)
1028
if (_acc.Role ==
AccessibleRole
.Window)
1108
_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role ==
AccessibleRole
.Window ? RootStatus.Root : RootStatus.NotRoot;
1231
public RoleCtrlType(
AccessibleRole
role, ControlType ctrlType)
1237
public
AccessibleRole
_role; // MSAA role
1245
new RoleCtrlType(
AccessibleRole
.Application, ControlType.Window),
1246
new RoleCtrlType(
AccessibleRole
.ButtonDropDown, ControlType.SplitButton),
1247
new RoleCtrlType(
AccessibleRole
.ButtonMenu, ControlType.MenuItem),
1248
new RoleCtrlType(
AccessibleRole
.CheckButton, ControlType.CheckBox),
1249
new RoleCtrlType(
AccessibleRole
.ColumnHeader, ControlType.Header),
1250
new RoleCtrlType(
AccessibleRole
.Combobox, ControlType.ComboBox),
1251
new RoleCtrlType(
AccessibleRole
.Document, ControlType.Document),
1252
new RoleCtrlType(
AccessibleRole
.Graphic, ControlType.Image),
1253
new RoleCtrlType(
AccessibleRole
.Link, ControlType.Hyperlink),
1254
new RoleCtrlType(
AccessibleRole
.List, ControlType.List),
1255
new RoleCtrlType(
AccessibleRole
.ListItem, ControlType.ListItem),
1256
new RoleCtrlType(
AccessibleRole
.MenuBar, ControlType.MenuBar),
1257
new RoleCtrlType(
AccessibleRole
.MenuItem, ControlType.MenuItem),
1258
new RoleCtrlType(
AccessibleRole
.MenuPopup, ControlType.Menu),
1259
new RoleCtrlType(
AccessibleRole
.Outline, ControlType.Tree),
1260
new RoleCtrlType(
AccessibleRole
.OutlineItem, ControlType.TreeItem),
1261
new RoleCtrlType(
AccessibleRole
.PageTab, ControlType.TabItem),
1262
new RoleCtrlType(
AccessibleRole
.PageTabList, ControlType.Tab),
1263
new RoleCtrlType(
AccessibleRole
.Pane, ControlType.Pane),
1264
new RoleCtrlType(
AccessibleRole
.ProgressBar, ControlType.ProgressBar),
1265
new RoleCtrlType(
AccessibleRole
.PushButton, ControlType.Button),
1266
new RoleCtrlType(
AccessibleRole
.RadioButton, ControlType.RadioButton),
1267
new RoleCtrlType(
AccessibleRole
.RowHeader, ControlType.Header),
1268
new RoleCtrlType(
AccessibleRole
.ScrollBar, ControlType.ScrollBar),
1269
new RoleCtrlType(
AccessibleRole
.Separator, ControlType.Separator),
1270
new RoleCtrlType(
AccessibleRole
.Slider, ControlType.Slider),
1271
new RoleCtrlType(
AccessibleRole
.SpinButton, ControlType.Spinner),
1272
new RoleCtrlType(
AccessibleRole
.SplitButton, ControlType.SplitButton),
1273
new RoleCtrlType(
AccessibleRole
.StaticText, ControlType.Text),
1274
new RoleCtrlType(
AccessibleRole
.StatusBar, ControlType.StatusBar),
1275
new RoleCtrlType(
AccessibleRole
.Table, ControlType.Table),
1277
new RoleCtrlType(
AccessibleRole
.TitleBar, ControlType.TitleBar),
1278
new RoleCtrlType(
AccessibleRole
.ToolBar, ControlType.ToolBar),
1279
new RoleCtrlType(
AccessibleRole
.Tooltip, ControlType.ToolTip),
1280
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)
530
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)
236
AccessibleRole
role = acc.Role;
237
if (role ==
AccessibleRole
.MenuBar || role ==
AccessibleRole
.MenuPopup)
305
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)
1518
isCheckbox = (
AccessibleRole
)overlay ==
AccessibleRole
.CheckButton;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
308
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))