88 references to AccessibleRole
UIAutomationClientSideProviders (88)
MS\Internal\AutomationProxies\Accessible.cs (11)
292internal AccessibleRole Role { get { return GetRole(_acc, _idChild); } } 469AccessibleRole role = Role; 470if (role != AccessibleRole.Window) 474if (role != AccessibleRole.Client || Description != "MSAAHTML Registered Handler") 587internal static AccessibleRole GetRole(IAccessible acc, int idChild) 589AccessibleRole rval; 597rval = (role is int) ? (AccessibleRole)(int)role : AccessibleRole.Client; 605rval = AccessibleRole.Client; 1439AccessibleRole ownRole = GetRole(old, NativeMethods.CHILD_SELF); 1455AccessibleRole role = GetRole(accChild, NativeMethods.CHILD_SELF);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (44)
186AccessibleRole role = acc.Role; 187if (role == AccessibleRole.Client || role == AccessibleRole.Window) 997AccessibleRole role = _acc.Role; 998if (role == AccessibleRole.Text) 1031if (_acc.Role == AccessibleRole.Window) 1113_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role == AccessibleRole.Window ? RootStatus.Root : RootStatus.NotRoot; 1236public RoleCtrlType(AccessibleRole role, ControlType ctrlType) 1242public AccessibleRole _role; // MSAA role 1250new RoleCtrlType(AccessibleRole.Application, ControlType.Window), 1251new RoleCtrlType(AccessibleRole.ButtonDropDown, ControlType.SplitButton), 1252new RoleCtrlType(AccessibleRole.ButtonMenu, ControlType.MenuItem), 1253new RoleCtrlType(AccessibleRole.CheckButton, ControlType.CheckBox), 1254new RoleCtrlType(AccessibleRole.ColumnHeader, ControlType.Header), 1255new RoleCtrlType(AccessibleRole.Combobox, ControlType.ComboBox), 1256new RoleCtrlType(AccessibleRole.Document, ControlType.Document), 1257new RoleCtrlType(AccessibleRole.Graphic, ControlType.Image), 1258new RoleCtrlType(AccessibleRole.Link, ControlType.Hyperlink), 1259new RoleCtrlType(AccessibleRole.List, ControlType.List), 1260new RoleCtrlType(AccessibleRole.ListItem, ControlType.ListItem), 1261new RoleCtrlType(AccessibleRole.MenuBar, ControlType.MenuBar), 1262new RoleCtrlType(AccessibleRole.MenuItem, ControlType.MenuItem), 1263new RoleCtrlType(AccessibleRole.MenuPopup, ControlType.Menu), 1264new RoleCtrlType(AccessibleRole.Outline, ControlType.Tree), 1265new RoleCtrlType(AccessibleRole.OutlineItem, ControlType.TreeItem), 1266new RoleCtrlType(AccessibleRole.PageTab, ControlType.TabItem), 1267new RoleCtrlType(AccessibleRole.PageTabList, ControlType.Tab), 1268new RoleCtrlType(AccessibleRole.Pane, ControlType.Pane), 1269new RoleCtrlType(AccessibleRole.ProgressBar, ControlType.ProgressBar), 1270new RoleCtrlType(AccessibleRole.PushButton, ControlType.Button), 1271new RoleCtrlType(AccessibleRole.RadioButton, ControlType.RadioButton), 1272new RoleCtrlType(AccessibleRole.RowHeader, ControlType.Header), 1273new RoleCtrlType(AccessibleRole.ScrollBar, ControlType.ScrollBar), 1274new RoleCtrlType(AccessibleRole.Separator, ControlType.Separator), 1275new RoleCtrlType(AccessibleRole.Slider, ControlType.Slider), 1276new RoleCtrlType(AccessibleRole.SpinButton, ControlType.Spinner), 1277new RoleCtrlType(AccessibleRole.SplitButton, ControlType.SplitButton), 1278new RoleCtrlType(AccessibleRole.StaticText, ControlType.Text), 1279new RoleCtrlType(AccessibleRole.StatusBar, ControlType.StatusBar), 1280new RoleCtrlType(AccessibleRole.Table, ControlType.Table), 1282new RoleCtrlType(AccessibleRole.TitleBar, ControlType.TitleBar), 1283new RoleCtrlType(AccessibleRole.ToolBar, ControlType.ToolBar), 1284new RoleCtrlType(AccessibleRole.Tooltip, ControlType.ToolTip), 1285new 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)
526if ((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) 239AccessibleRole role = acc.Role; 240if (role == AccessibleRole.MenuBar || role == AccessibleRole.MenuPopup) 308if (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)
1521isCheckbox = (AccessibleRole)overlay == AccessibleRole.CheckButton;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
311return 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))