88 references to AccessibleRole
UIAutomationClientSideProviders (88)
MS\Internal\AutomationProxies\Accessible.cs (11)
288internal AccessibleRole Role { get { return GetRole(_acc, _idChild); } } 462AccessibleRole role = Role; 463if (role != AccessibleRole.Window) 467if (role != AccessibleRole.Client || Description != "MSAAHTML Registered Handler") 571internal static AccessibleRole GetRole(IAccessible acc, int idChild) 573AccessibleRole rval; 581rval = (role is int) ? (AccessibleRole)(int)role : AccessibleRole.Client; 589rval = AccessibleRole.Client; 1414AccessibleRole ownRole = GetRole(old, NativeMethods.CHILD_SELF); 1430AccessibleRole role = GetRole(accChild, NativeMethods.CHILD_SELF);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (44)
183AccessibleRole role = acc.Role; 184if (role == AccessibleRole.Client || role == AccessibleRole.Window) 994AccessibleRole role = _acc.Role; 995if (role == AccessibleRole.Text) 1028if (_acc.Role == AccessibleRole.Window) 1108_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role == AccessibleRole.Window ? RootStatus.Root : RootStatus.NotRoot; 1231public RoleCtrlType(AccessibleRole role, ControlType ctrlType) 1237public AccessibleRole _role; // MSAA role 1245new RoleCtrlType(AccessibleRole.Application, ControlType.Window), 1246new RoleCtrlType(AccessibleRole.ButtonDropDown, ControlType.SplitButton), 1247new RoleCtrlType(AccessibleRole.ButtonMenu, ControlType.MenuItem), 1248new RoleCtrlType(AccessibleRole.CheckButton, ControlType.CheckBox), 1249new RoleCtrlType(AccessibleRole.ColumnHeader, ControlType.Header), 1250new RoleCtrlType(AccessibleRole.Combobox, ControlType.ComboBox), 1251new RoleCtrlType(AccessibleRole.Document, ControlType.Document), 1252new RoleCtrlType(AccessibleRole.Graphic, ControlType.Image), 1253new RoleCtrlType(AccessibleRole.Link, ControlType.Hyperlink), 1254new RoleCtrlType(AccessibleRole.List, ControlType.List), 1255new RoleCtrlType(AccessibleRole.ListItem, ControlType.ListItem), 1256new RoleCtrlType(AccessibleRole.MenuBar, ControlType.MenuBar), 1257new RoleCtrlType(AccessibleRole.MenuItem, ControlType.MenuItem), 1258new RoleCtrlType(AccessibleRole.MenuPopup, ControlType.Menu), 1259new RoleCtrlType(AccessibleRole.Outline, ControlType.Tree), 1260new RoleCtrlType(AccessibleRole.OutlineItem, ControlType.TreeItem), 1261new RoleCtrlType(AccessibleRole.PageTab, ControlType.TabItem), 1262new RoleCtrlType(AccessibleRole.PageTabList, ControlType.Tab), 1263new RoleCtrlType(AccessibleRole.Pane, ControlType.Pane), 1264new RoleCtrlType(AccessibleRole.ProgressBar, ControlType.ProgressBar), 1265new RoleCtrlType(AccessibleRole.PushButton, ControlType.Button), 1266new RoleCtrlType(AccessibleRole.RadioButton, ControlType.RadioButton), 1267new RoleCtrlType(AccessibleRole.RowHeader, ControlType.Header), 1268new RoleCtrlType(AccessibleRole.ScrollBar, ControlType.ScrollBar), 1269new RoleCtrlType(AccessibleRole.Separator, ControlType.Separator), 1270new RoleCtrlType(AccessibleRole.Slider, ControlType.Slider), 1271new RoleCtrlType(AccessibleRole.SpinButton, ControlType.Spinner), 1272new RoleCtrlType(AccessibleRole.SplitButton, ControlType.SplitButton), 1273new RoleCtrlType(AccessibleRole.StaticText, ControlType.Text), 1274new RoleCtrlType(AccessibleRole.StatusBar, ControlType.StatusBar), 1275new RoleCtrlType(AccessibleRole.Table, ControlType.Table), 1277new RoleCtrlType(AccessibleRole.TitleBar, ControlType.TitleBar), 1278new RoleCtrlType(AccessibleRole.ToolBar, ControlType.ToolBar), 1279new RoleCtrlType(AccessibleRole.Tooltip, ControlType.ToolTip), 1280new RoleCtrlType(AccessibleRole.Window, ControlType.Window)
MS\Internal\AutomationProxies\WindowsButton.cs (3)
402if (accParent.Role == AccessibleRole.Grouping) 685acc.Role == AccessibleRole.RadioButton) 725acc.Role == AccessibleRole.RadioButton &&
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (8)
43case AccessibleRole.Combobox: 47case AccessibleRole.SpinButton: 50case AccessibleRole.Grouping: 53case AccessibleRole.StatusBar: 84case AccessibleRole.CheckButton: 87case AccessibleRole.Grouping: 90case AccessibleRole.PushButton: 93case AccessibleRole.RadioButton:
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (2)
36AccessibleRole role = Accessible.GetRole(acc, item + 1); 42if (role == AccessibleRole.MenuItem)
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
154AccessibleRole role = Accessible.GetRole(acc, _itemParent + 1); 157if (role == AccessibleRole.MenuItem)
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
530if ((accWind != null) && (accWind.Role == AccessibleRole.Window))
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
100if (accChild != null && accChild.Role != AccessibleRole.PushButton)
MS\Internal\AutomationProxies\WindowsToolbar.cs (7)
61AccessibleRole role = acc.Role; 62if (role == AccessibleRole.MenuBar || role == AccessibleRole.MenuPopup) 236AccessibleRole role = acc.Role; 237if (role == AccessibleRole.MenuBar || role == AccessibleRole.MenuPopup) 305if (acc.Role == AccessibleRole.MenuItem)
MS\Internal\AutomationProxies\WindowsToolbarAsMenu.cs (3)
34AccessibleRole role = acc.Role; 36if (role == AccessibleRole.MenuBar) 41else if (role == AccessibleRole.MenuPopup)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (2)
35AccessibleRole role = acc.Role; 36if (role == AccessibleRole.MenuItem)
MS\Internal\AutomationProxies\WindowsTreeView.cs (2)
1518isCheckbox = (AccessibleRole)overlay == AccessibleRole.CheckButton;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
308return hr == NativeMethods.S_OK && acc != null ? acc.Role == AccessibleRole.SpinButton : false;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
186if ((acc.Role != AccessibleRole.SpinButton) || (acc.ChildCount != 2))