1185 references to AccessibleRole
System.Windows.Forms (277)
System\Windows\Forms\Accessibility\AccessibleObject.cs (37)
325public virtual AccessibleRole Role => SystemIAccessible.TryGetRole(CHILDID_SELF); 659AccessibleRole.MenuItem 660or AccessibleRole.Link 661or AccessibleRole.PushButton 662or AccessibleRole.ButtonDropDown 663or AccessibleRole.ButtonMenu 664or AccessibleRole.ButtonDropDownGrid 665or AccessibleRole.Clock 666or AccessibleRole.SplitButton 667or AccessibleRole.CheckButton 668or AccessibleRole.Cell 669or AccessibleRole.ListItem => true, 670AccessibleRole.Default 671or AccessibleRole.None 672or AccessibleRole.Sound 673or AccessibleRole.Cursor 674or AccessibleRole.Caret 675or AccessibleRole.Alert 676or AccessibleRole.Client 677or AccessibleRole.Chart 678or AccessibleRole.Dialog 679or AccessibleRole.Border 680or AccessibleRole.Column 681or AccessibleRole.Row 682or AccessibleRole.HelpBalloon 683or AccessibleRole.Character 684or AccessibleRole.PageTab 685or AccessibleRole.PropertyPage 686or AccessibleRole.DropList 687or AccessibleRole.Dial 688or AccessibleRole.HotkeyField 689or AccessibleRole.Diagram 690or AccessibleRole.Animation 691or AccessibleRole.Equation 692or AccessibleRole.WhiteSpace 693or AccessibleRole.IpAddress 694or AccessibleRole.OutlineButton => false,
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (11)
181public static AccessibleRole TryGetRole(this AgileComPointer<IAccessible>? agile, int child) 184public static AccessibleRole TryGetRole(this AgileComPointer<IAccessible>? agile, VARIANT child) 189return AccessibleRole.None; 197return role.vt is VARENUM.VT_I4 or VARENUM.VT_INT ? (AccessibleRole)(int)role : AccessibleRole.None; 304public static AccessibleRole GetOwnerAccessibleRole<TAccessible>( 306AccessibleRole defaultRole = AccessibleRole.Default) 309AccessibleRole role = accessibleObject.Owner?.AccessibleRole ?? AccessibleRole.Default; 310return role == AccessibleRole.Default ? defaultRole : role;
System\Windows\Forms\Accessibility\AccessibleRoleControlTypeMap.cs (68)
13private static readonly Dictionary<AccessibleRole, UIA_CONTROLTYPE_ID> s_map = new() 15{ AccessibleRole.Alert, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 16{ AccessibleRole.Animation, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 17{ AccessibleRole.Application, UIA_CONTROLTYPE_ID.UIA_WindowControlTypeId }, 18{ AccessibleRole.Border, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 19{ AccessibleRole.ButtonDropDown, UIA_CONTROLTYPE_ID.UIA_SplitButtonControlTypeId }, 20{ AccessibleRole.ButtonDropDownGrid, UIA_CONTROLTYPE_ID.UIA_ButtonControlTypeId }, 21{ AccessibleRole.ButtonMenu, UIA_CONTROLTYPE_ID.UIA_MenuItemControlTypeId }, 22{ AccessibleRole.Caret, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 23{ AccessibleRole.Cell, UIA_CONTROLTYPE_ID.UIA_DataItemControlTypeId }, 24{ AccessibleRole.Character, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 25{ AccessibleRole.Chart, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 26{ AccessibleRole.CheckButton, UIA_CONTROLTYPE_ID.UIA_CheckBoxControlTypeId }, 27{ AccessibleRole.Client, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 28{ AccessibleRole.Clock, UIA_CONTROLTYPE_ID.UIA_ButtonControlTypeId }, 29{ AccessibleRole.Column, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 30{ AccessibleRole.ColumnHeader, UIA_CONTROLTYPE_ID.UIA_HeaderControlTypeId }, 31{ AccessibleRole.ComboBox, UIA_CONTROLTYPE_ID.UIA_ComboBoxControlTypeId }, 32{ AccessibleRole.Cursor, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 33{ AccessibleRole.Default, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 34{ AccessibleRole.Diagram, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 35{ AccessibleRole.Dial, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 36{ AccessibleRole.Dialog, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 37{ AccessibleRole.Document, UIA_CONTROLTYPE_ID.UIA_DocumentControlTypeId }, 38{ AccessibleRole.DropList, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 39{ AccessibleRole.Equation, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 40{ AccessibleRole.Graphic, UIA_CONTROLTYPE_ID.UIA_ImageControlTypeId }, 41{ AccessibleRole.Grip, UIA_CONTROLTYPE_ID.UIA_ThumbControlTypeId }, 42{ AccessibleRole.Grouping, UIA_CONTROLTYPE_ID.UIA_GroupControlTypeId }, 43{ AccessibleRole.HelpBalloon, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 44{ AccessibleRole.HotkeyField, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 45{ AccessibleRole.Indicator, UIA_CONTROLTYPE_ID.UIA_ThumbControlTypeId }, 46{ AccessibleRole.IpAddress, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 47{ AccessibleRole.Link, UIA_CONTROLTYPE_ID.UIA_HyperlinkControlTypeId }, 48{ AccessibleRole.List, UIA_CONTROLTYPE_ID.UIA_ListControlTypeId }, 49{ AccessibleRole.ListItem, UIA_CONTROLTYPE_ID.UIA_ListItemControlTypeId }, 50{ AccessibleRole.MenuBar, UIA_CONTROLTYPE_ID.UIA_MenuBarControlTypeId }, 51{ AccessibleRole.MenuItem, UIA_CONTROLTYPE_ID.UIA_MenuItemControlTypeId }, 52{ AccessibleRole.MenuPopup, UIA_CONTROLTYPE_ID.UIA_MenuControlTypeId }, 53{ AccessibleRole.None, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 54{ AccessibleRole.Outline, UIA_CONTROLTYPE_ID.UIA_TreeControlTypeId }, 55{ AccessibleRole.OutlineButton, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 56{ AccessibleRole.OutlineItem, UIA_CONTROLTYPE_ID.UIA_TreeItemControlTypeId }, 57{ AccessibleRole.PageTab, UIA_CONTROLTYPE_ID.UIA_TabItemControlTypeId }, 58{ AccessibleRole.PageTabList, UIA_CONTROLTYPE_ID.UIA_TabControlTypeId }, 59{ AccessibleRole.Pane, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 60{ AccessibleRole.ProgressBar, UIA_CONTROLTYPE_ID.UIA_ProgressBarControlTypeId }, 61{ AccessibleRole.PropertyPage, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 62{ AccessibleRole.PushButton, UIA_CONTROLTYPE_ID.UIA_ButtonControlTypeId }, 63{ AccessibleRole.RadioButton, UIA_CONTROLTYPE_ID.UIA_RadioButtonControlTypeId }, 64{ AccessibleRole.Row, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 65{ AccessibleRole.RowHeader, UIA_CONTROLTYPE_ID.UIA_HeaderControlTypeId }, 66{ AccessibleRole.ScrollBar, UIA_CONTROLTYPE_ID.UIA_ScrollBarControlTypeId }, 67{ AccessibleRole.Separator, UIA_CONTROLTYPE_ID.UIA_SeparatorControlTypeId }, 68{ AccessibleRole.Slider, UIA_CONTROLTYPE_ID.UIA_SliderControlTypeId }, 69{ AccessibleRole.Sound, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 70{ AccessibleRole.SpinButton, UIA_CONTROLTYPE_ID.UIA_SpinnerControlTypeId }, 71{ AccessibleRole.SplitButton, UIA_CONTROLTYPE_ID.UIA_SplitButtonControlTypeId }, 72{ AccessibleRole.StaticText, UIA_CONTROLTYPE_ID.UIA_TextControlTypeId }, 73{ AccessibleRole.StatusBar, UIA_CONTROLTYPE_ID.UIA_StatusBarControlTypeId }, 74{ AccessibleRole.Table, UIA_CONTROLTYPE_ID.UIA_TableControlTypeId }, 75{ AccessibleRole.Text, UIA_CONTROLTYPE_ID.UIA_EditControlTypeId }, 76{ AccessibleRole.TitleBar, UIA_CONTROLTYPE_ID.UIA_TitleBarControlTypeId }, 77{ AccessibleRole.ToolBar, UIA_CONTROLTYPE_ID.UIA_ToolBarControlTypeId }, 78{ AccessibleRole.ToolTip, UIA_CONTROLTYPE_ID.UIA_ToolTipControlTypeId }, 79{ AccessibleRole.WhiteSpace, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }, 80{ AccessibleRole.Window, UIA_CONTROLTYPE_ID.UIA_WindowControlTypeId } 83public static UIA_CONTROLTYPE_ID GetControlType(AccessibleRole role) => s_map[role];
System\Windows\Forms\Accessibility\AccessibleStates.cs (1)
103/// <see cref="AccessibleRole.Graphic"/>|<see cref="Animated"/>.
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (4)
427public override AccessibleRole Role 431AccessibleRole role = Owner?.AccessibleRole ?? AccessibleRole.Default; 432return role != AccessibleRole.Default ? role : base.Role;
System\Windows\Forms\Control.cs (4)
511[DefaultValue(AccessibleRole.Default)] 513public AccessibleRole AccessibleRole 515get => Properties.GetValueOrDefault(s_accessibleRoleProperty, AccessibleRole.Default); 519Properties.AddOrRemoveValue(s_accessibleRoleProperty, value, defaultValue: AccessibleRole.Default);
System\Windows\Forms\Controls\Buttons\Button.ButtonAccessibleObject.cs (1)
19=> this.TryGetOwnerAs(out Control? owner) && owner.AccessibleRole == AccessibleRole.Default
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (2)
21public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.CheckButton);
System\Windows\Forms\Controls\Buttons\RadioButton.RadioButtonAccessibleObject.cs (2)
20public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.RadioButton);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
119this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
100public override AccessibleRole Role => SystemIAccessible.TryGetRole(GetChildId());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
145public override AccessibleRole Role
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (3)
50public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.Table); 214return (this.TryGetOwnerAs(out owner) && owner.AccessibleRole == AccessibleRole.Default)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
80UIA_PROPERTY_ID.UIA_ControlTypePropertyId => this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (2)
25public override AccessibleRole Role => AccessibleRole.Grouping;
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (2)
79public override AccessibleRole Role 83return AccessibleRole.Row;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (2)
121public override AccessibleRole Role => AccessibleRole.Cell;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (2)
70public override AccessibleRole Role => AccessibleRole.ColumnHeader;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (2)
137public override AccessibleRole Role => AccessibleRole.Row;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (2)
26public override AccessibleRole Role => AccessibleRole.Grouping;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (2)
82public override AccessibleRole Role => AccessibleRole.RowHeader;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObject.cs (1)
65UIA_PROPERTY_ID.UIA_ControlTypePropertyId when this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (3)
72public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.ComboBox); 79UIA_PROPERTY_ID.UIA_LocalizedControlTypePropertyId when this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\GroupBox\GroupBox.GroupBoxAccessibleObject.cs (2)
17public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.Grouping);
System\Windows\Forms\Controls\Labels\Label.LabelAccessibleObject.cs (2)
14public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.StaticText);
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (2)
130public override AccessibleRole Role => AccessibleRole.Link;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (2)
63public override AccessibleRole Role => AccessibleRole.CheckButton;
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
103UIA_PROPERTY_ID.UIA_ControlTypePropertyId => this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
96public override AccessibleRole Role => _owningAccessibleObject.SystemIAccessible.TryGetRole(GetChildId());
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
229this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
108public override AccessibleRole Role => AccessibleRole.Grouping;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (3)
75public override AccessibleRole Role 77? AccessibleRole.CheckButton 78: AccessibleRole.ListItem;
System\Windows\Forms\Controls\Menus\MenuStrip.MenuStripAccessibleObject.cs (2)
18public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.MenuBar);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (2)
210public override AccessibleRole Role => AccessibleRole.Client;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (2)
202public override AccessibleRole Role => AccessibleRole.Table;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (2)
88public override AccessibleRole Role => AccessibleRole.PushButton;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (2)
182public override AccessibleRole Role => AccessibleRole.Cell;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarDayOfWeekCellAccessibleObject.cs (2)
73public override AccessibleRole Role => AccessibleRole.ColumnHeader;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (2)
193public override AccessibleRole Role => AccessibleRole.Row;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarWeekNumberCellAccessibleObject.cs (2)
80public override AccessibleRole Role => AccessibleRole.RowHeader;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (3)
429this.TryGetOwnerAs(out MonthCalendar? owner) && owner.AccessibleRole == AccessibleRole.Default 536public override AccessibleRole Role 537=> this.GetOwnerAccessibleRole(AccessibleRole.Table);
System\Windows\Forms\Controls\PictureBox\PictureBox.PictureBoxAccessibleObject.cs (1)
20UIA_PROPERTY_ID.UIA_ControlTypePropertyId when this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\ProgressBar\ProgressBar.ProgressBarAccessibleObject.cs (1)
28UIA_PROPERTY_ID.UIA_ControlTypePropertyId when this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
183_toolStrip.AccessibleRole = AccessibleRole.ToolBar; 1730button.AccessibleRole = AccessibleRole.RadioButton;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.CategoryGridEntryAccessibleObject.cs (2)
24public override AccessibleRole Role => AccessibleRole.ButtonDropDownGrid;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAccessibleObject.cs (2)
79public override AccessibleRole Role => AccessibleRole.PushButton;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (2)
77public override AccessibleRole Role => AccessibleRole.Cell;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (2)
100public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.Table);
System\Windows\Forms\Controls\Splitter\Splitter.SplitterAccessibleObject.cs (1)
20UIA_PROPERTY_ID.UIA_ControlTypePropertyId when this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (2)
33public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.PageTabList);
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
57public override AccessibleRole Role => SystemIAccessibleInternal.TryGetRole(GetChildId());
System\Windows\Forms\Controls\ToolStrips\StatusStrip.StatusStripAccessibleObject.cs (2)
16public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.StatusBar);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (2)
378public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.ToolBar);
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.ToolStripButtonAccessibleObject.cs (5)
26UIA_PATTERN_ID.UIA_TogglePatternId => Role == AccessibleRole.CheckButton, 30public override AccessibleRole Role 34AccessibleRole role = _ownerItem.AccessibleRole; 35if (role != AccessibleRole.Default) 42return AccessibleRole.CheckButton;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripControlHostAccessibleObject.cs (2)
55public override AccessibleRole Role 65return AccessibleRole.Default;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.ToolStripDropDownAccessibleObject.cs (2)
59public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.MenuPopup);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObject.cs (1)
31_owningToolStripDropDownButton.AccessibleRole == AccessibleRole.Default
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (4)
19public override AccessibleRole Role 23AccessibleRole role = Owner.AccessibleRole; 24if (role != AccessibleRole.Default) 29return AccessibleRole.MenuItem;
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.ToolStripGripAccessibleObject.cs (4)
22public override AccessibleRole Role 26AccessibleRole role = Owner.AccessibleRole; 27if (role != AccessibleRole.Default) 32return AccessibleRole.Grip;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
260[DefaultValue(AccessibleRole.Default)] 262public AccessibleRole AccessibleRole 264get => Properties.GetValueOrDefault(s_accessibleRoleProperty, AccessibleRole.Default); 268Properties.AddOrRemoveValue(s_accessibleRoleProperty, value, defaultValue: AccessibleRole.Default);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (4)
146public override AccessibleRole Role 150AccessibleRole role = _ownerItem.AccessibleRole; 151if (role != AccessibleRole.Default) 156return AccessibleRole.PushButton;
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.ToolStripLabelAccessibleObject.cs (5)
31public override AccessibleRole Role 35AccessibleRole role = Owner.AccessibleRole; 36if (role != AccessibleRole.Default) 41return _owningToolStripLabel.IsLink ? AccessibleRole.Link : AccessibleRole.StaticText;
System\Windows\Forms\Controls\ToolStrips\ToolStripNumericUpDown.ToolStripNumericUpDownControl.ToolStripNumericUpDownAccessibleObject.cs (1)
26UIA_PROPERTY_ID.UIA_ControlTypePropertyId when this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelAccessibleObject.cs (2)
17public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.Client);
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.ToolStripSeparatorAccessibleObject.cs (4)
20public override AccessibleRole Role 24AccessibleRole role = _ownerItem.AccessibleRole; 25if (role != AccessibleRole.Default) 30return AccessibleRole.Separator;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObject.cs (1)
28_owningToolStripSplitButton.AccessibleRole == AccessibleRole.Default
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControlAccessibleObject.cs (1)
22UIA_PROPERTY_ID.UIA_ControlTypePropertyId when this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (3)
45public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.Slider); 153UIA_PROPERTY_ID.UIA_ControlTypePropertyId when this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (2)
42public override AccessibleRole Role 43=> ParentInternal?.SystemIAccessible.TryGetRole(GetChildId()) ?? AccessibleRole.None;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (3)
144public override AccessibleRole Role 146? AccessibleRole.CheckButton 147: AccessibleRole.OutlineItem;
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainItemAccessibleObject.cs (2)
37public override AccessibleRole Role => AccessibleRole.ListItem;
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainUpDownAccessibleObject.cs (1)
25public override AccessibleRole Role => _upDownBaseAccessibleObject.Role;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownBaseAccessibleObject.cs (2)
34public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.SpinButton);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.cs (2)
99public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.SpinButton);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (2)
104public override AccessibleRole Role => AccessibleRole.PushButton;
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (2)
117public override AccessibleRole Role => AccessibleRole.Alert;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (2)
114public override AccessibleRole Role => AccessibleRole.Grouping;
System\Windows\Forms\Form.AccessibleObject.cs (3)
37Role == AccessibleRole.Client 45public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.Client);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
339public new AccessibleRole AccessibleRole
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
144this.GetOwnerAccessibleRole() == AccessibleRole.Default
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
53public override AccessibleRole Role
System.Windows.Forms.Design (20)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (6)
243? IsReadOnly() ? AccessibleRole.StaticText : AccessibleRole.Text 244: IsReadOnly() ? AccessibleRole.DropList : AccessibleRole.ComboBox; 248_button.AccessibleRole = (_button.Ellipsis ? AccessibleRole.PushButton : AccessibleRole.ButtonDropDown);
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (2)
51public override AccessibleRole Role => AccessibleRole.Cell;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (4)
27_left = new SpringControl(this) { AccessibleRole = AccessibleRole.CheckButton }; 28_right = new SpringControl(this) { AccessibleRole = AccessibleRole.CheckButton }; 29_top = new SpringControl(this) { AccessibleRole = AccessibleRole.CheckButton }; 30_bottom = new SpringControl(this) { AccessibleRole = AccessibleRole.CheckButton };
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
36public override AccessibleRole Role => _control.AccessibilityObject.Role;
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
177AccessibleRole = AccessibleRole.Graphic 302AccessibleRole = AccessibleRole.Graphic
System\Windows\Forms\Design\ToolStripTemplateNode.cs (5)
1372AccessibleRole = AccessibleRole.Text, 1434_addItemButton.AccessibleRole = AccessibleRole.ButtonDropDown; 1501_miniToolStrip.AccessibleRole = AccessibleRole.ComboBox; 1507_miniToolStrip.AccessibleRole = AccessibleRole.ButtonDropDown; 1641AccessibleRole = AccessibleRole.ComboBox;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System.Windows.Forms.Tests (884)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (32)
28Assert.Equal(AccessibleRole.None, accessibleObject.Role); 623Assert.Equal(AccessibleRole.None, accessibleObject.Role); 642Assert.Equal(AccessibleRole.Client, accessibleObject.Role); 663Assert.Equal(AccessibleRole.Graphic, accessibleObject.Role); 689Assert.Equal(AccessibleRole.None, accessibleObject.Role); 708Assert.Equal(AccessibleRole.None, accessibleObject.Role); 727Assert.Equal(AccessibleRole.Window, accessibleObject.Role); 746Assert.Equal(AccessibleRole.Client, accessibleObject.Role); 767Assert.Equal(AccessibleRole.None, accessibleObject.Role); 788Assert.Equal(AccessibleRole.Graphic, accessibleObject.Role); 809Assert.Equal(AccessibleRole.Window, accessibleObject.Role); 2134[InlineData(AccessibleRole.None, 0)] 2135[InlineData(AccessibleRole.None, unchecked((int)0x80020004))] 2136[InlineData(AccessibleRole.None, "abc")] 2137[InlineData(AccessibleRole.None, null)] 2138[InlineData(AccessibleRole.Default, 0)] 2139[InlineData(AccessibleRole.Default, unchecked((int)0x80020004))] 2140[InlineData(AccessibleRole.Default, "abc")] 2141[InlineData(AccessibleRole.Default, null)] 2142[InlineData(AccessibleRole.Sound, 0)] 2143[InlineData(AccessibleRole.Sound, unchecked((int)0x80020004))] 2144[InlineData(AccessibleRole.Sound, "abc")] 2145[InlineData(AccessibleRole.Sound, null)] 2146public void AccessibleObject_IAccessibleGet_accRole_InvokeDefaultSelf_ReturnsExpected(AccessibleRole result, object varChild) 2167Assert.Equal((int)AccessibleRole.Window, iAccessible.get_accRole((int)PInvoke.CHILDID_SELF)); 2172[InlineData(AccessibleRole.None, 2, 1, 0)] 2173[InlineData(AccessibleRole.Default, 2, 1, 0)] 2174[InlineData(AccessibleRole.Sound, 2, 1, 0)] 2175[InlineData(AccessibleRole.None, 3, 0, 1)] 2176[InlineData(AccessibleRole.Default, 3, 0, 1)] 2177[InlineData(AccessibleRole.Sound, 3, 0, 1)] 2178public void AccessibleObject_IAccessibleGet_accRole_InvokeDefaultChild_ReturnsExpected(AccessibleRole result, object varChild, int child1CallCount, int child2CallCount)
System\Windows\Forms\AccessibleObjects\Button.ButtonAccessibleObjectTests.cs (10)
30[InlineData(true, AccessibleRole.PushButton)] 31[InlineData(false, AccessibleRole.None)] 32public void ButtonAccessibleObject_AccessibleRole_Default_ReturnsExpected(bool createControl, AccessibleRole accessibleRole) 36AccessibleRole = AccessibleRole.Default 55AccessibleRole = AccessibleRole.Link 61Assert.Equal(AccessibleRole.Link, buttonAccessibleObject.Role); 101Array roles = Enum.GetValues(typeof(AccessibleRole)); 103foreach (AccessibleRole role in roles) 105if (role == AccessibleRole.Default) 116public void ButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (15)
67[InlineData(true, true, AccessibleRole.Client)] 68[InlineData(true, false, AccessibleRole.HelpBalloon)] 69[InlineData(false, true, AccessibleRole.None)] 70[InlineData(false, false, AccessibleRole.HelpBalloon)] 71public void ButtonBase_CreateAccessibilityInstance_InvokeWithRole_ReturnsExpected(bool createControl, bool defaultRole, AccessibleRole expectedAccessibleRole) 77control.AccessibleRole = AccessibleRole.HelpBalloon; 107Assert.Equal(AccessibleRole.Client, instance.Role); 123Assert.Equal(AccessibleRole.None, instance.Role); 187[InlineData(true, AccessibleRole.Client)] 188[InlineData(false, AccessibleRole.None)] 189public void ButtonBaseBoxAccessibleObject_ControlType_IsPane_IfAccessibleRoleIsDefault(bool createControl, AccessibleRole expectedRole) 209Array roles = Enum.GetValues(typeof(AccessibleRole)); 211foreach (AccessibleRole role in roles) 213if (role == AccessibleRole.Default) 224public void ButtonBaseAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\CategoryGridEntryAccessibleObjectTests.cs (2)
29Assert.Equal(AccessibleRole.ButtonDropDownGrid, accessibilityObject.Role); 161[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.ButtonDropDownGrid)]
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (7)
72Assert.Equal(AccessibleRole.CheckButton, checkBoxAccessibleObject.Role); 81AccessibleRole = AccessibleRole.PushButton 87Assert.Equal(AccessibleRole.PushButton, checkBoxAccessibleObject.Role); 281Array roles = Enum.GetValues(typeof(AccessibleRole)); 283foreach (AccessibleRole role in roles) 285if (role == AccessibleRole.Default) 296public void CheckBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (8)
60Array roles = Enum.GetValues(typeof(AccessibleRole)); 62foreach (AccessibleRole role in roles) 64if (role == AccessibleRole.Default) 75public void CheckedListBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 88[InlineData(true, AccessibleRole.List)] 89[InlineData(false, AccessibleRole.None)] 90public void CheckedListBoxAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 100AccessibleRole actual = checkedListBox.AccessibilityObject.Role;
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (1)
58Assert.Equal(AccessibleRole.CheckButton, checkedListBox.AccessibilityObject.GetChild(0).Role);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (7)
12[InlineData(true, AccessibleRole.ComboBox)] 13[InlineData(false, AccessibleRole.None)] 14public void ComboBoxAccessibleObject_Ctor_Default(bool createControl, AccessibleRole expectedAccessibleRole) 241Array roles = Enum.GetValues(typeof(AccessibleRole)); 243foreach (AccessibleRole role in roles) 245if (role == AccessibleRole.Default) 256public void ComboBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (74)
66Assert.Equal(AccessibleRole.None, accessibleObject.Role); 101Assert.Equal(AccessibleRole.Client, accessibleObject.Role); 752yield return new object[] { AccessibleRole.None }; 753yield return new object[] { AccessibleRole.TitleBar }; 754yield return new object[] { AccessibleRole.MenuBar }; 755yield return new object[] { AccessibleRole.ScrollBar }; 756yield return new object[] { AccessibleRole.Grip }; 757yield return new object[] { AccessibleRole.Sound }; 758yield return new object[] { AccessibleRole.Cursor }; 759yield return new object[] { AccessibleRole.Caret }; 760yield return new object[] { AccessibleRole.Alert }; 761yield return new object[] { AccessibleRole.Window }; 762yield return new object[] { AccessibleRole.Client }; 763yield return new object[] { AccessibleRole.MenuPopup }; 764yield return new object[] { AccessibleRole.MenuItem }; 765yield return new object[] { AccessibleRole.ToolTip }; 766yield return new object[] { AccessibleRole.Application }; 767yield return new object[] { AccessibleRole.Document }; 768yield return new object[] { AccessibleRole.Pane }; 769yield return new object[] { AccessibleRole.Chart }; 770yield return new object[] { AccessibleRole.Dialog }; 771yield return new object[] { AccessibleRole.Border }; 772yield return new object[] { AccessibleRole.Grouping }; 773yield return new object[] { AccessibleRole.Separator }; 774yield return new object[] { AccessibleRole.ToolBar }; 775yield return new object[] { AccessibleRole.StatusBar }; 776yield return new object[] { AccessibleRole.Table }; 777yield return new object[] { AccessibleRole.ColumnHeader }; 778yield return new object[] { AccessibleRole.RowHeader }; 779yield return new object[] { AccessibleRole.Column }; 780yield return new object[] { AccessibleRole.Row }; 781yield return new object[] { AccessibleRole.Cell }; 782yield return new object[] { AccessibleRole.Link }; 783yield return new object[] { AccessibleRole.HelpBalloon }; 784yield return new object[] { AccessibleRole.Character }; 785yield return new object[] { AccessibleRole.List }; 786yield return new object[] { AccessibleRole.ListItem }; 787yield return new object[] { AccessibleRole.Outline }; 788yield return new object[] { AccessibleRole.OutlineItem }; 789yield return new object[] { AccessibleRole.PageTab }; 790yield return new object[] { AccessibleRole.PropertyPage }; 791yield return new object[] { AccessibleRole.Indicator }; 792yield return new object[] { AccessibleRole.Graphic }; 793yield return new object[] { AccessibleRole.StaticText }; 794yield return new object[] { AccessibleRole.Text }; 795yield return new object[] { AccessibleRole.PushButton }; 796yield return new object[] { AccessibleRole.CheckButton }; 797yield return new object[] { AccessibleRole.RadioButton }; 798yield return new object[] { AccessibleRole.ComboBox }; 799yield return new object[] { AccessibleRole.DropList }; 800yield return new object[] { AccessibleRole.ProgressBar }; 801yield return new object[] { AccessibleRole.Dial }; 802yield return new object[] { AccessibleRole.HotkeyField }; 803yield return new object[] { AccessibleRole.Slider }; 804yield return new object[] { AccessibleRole.SpinButton }; 805yield return new object[] { AccessibleRole.Diagram }; 806yield return new object[] { AccessibleRole.Animation }; 807yield return new object[] { AccessibleRole.Equation }; 808yield return new object[] { AccessibleRole.ButtonDropDown }; 809yield return new object[] { AccessibleRole.ButtonMenu }; 810yield return new object[] { AccessibleRole.ButtonDropDownGrid }; 811yield return new object[] { AccessibleRole.WhiteSpace }; 812yield return new object[] { AccessibleRole.PageTabList }; 813yield return new object[] { AccessibleRole.Clock }; 814yield return new object[] { AccessibleRole.SplitButton }; 815yield return new object[] { AccessibleRole.IpAddress }; 816yield return new object[] { AccessibleRole.OutlineButton }; 821public void ControlAccessibleObject_Role_GetWithAccessibleRole_ReturnsExpected(AccessibleRole accessibleRole) 1250control.AccessibleRole = AccessibleRole.Link; 1253var accessibleObjectRole = controlAccessibleObject.Role; 1255Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 1383Array roles = Enum.GetValues(typeof(AccessibleRole)); 1385foreach (AccessibleRole role in roles) 1393public void ControlAccessibleObject_GetPropertyValue_ControlTypeProperty_ReturnsCorrectValue(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (7)
60[InlineData(true, AccessibleRole.Client)] 61[InlineData(false, AccessibleRole.None)] 62public void DataGridViewEditingPanelAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 81Array roles = Enum.GetValues(typeof(AccessibleRole)); 83foreach (AccessibleRole role in roles) 85if (role == AccessibleRole.Default) 96public void DataGridViewEditingPanelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (5)
22Assert.Equal(AccessibleRole.Table, accessibleObject.Role); 483Array roles = Enum.GetValues(typeof(AccessibleRole)); 485foreach (AccessibleRole role in roles) 487if (role == AccessibleRole.Default) 498public void DataGridViewAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DataGridViewButtonCellAccessibleObjectTests.cs (1)
15Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
21Assert.Equal(AccessibleRole.Cell, accessibleObject.Role); 101Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
15Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (1)
41Assert.Equal(AccessibleRole.ColumnHeader, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (7)
24[InlineData(true, AccessibleRole.ComboBox)] 25[InlineData(false, AccessibleRole.None)] 26public void DataGridViewComboBoxEditingControlAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 56Array roles = Enum.GetValues(typeof(AccessibleRole)); 58foreach (AccessibleRole role in roles) 60if (role == AccessibleRole.Default) 71public void DataGridViewComboBoxEditingControlAccessibleObjectTest_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DataGridViewImageCellAccessibleObjectTests.cs (1)
16Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewLinkCellAccessibleObjectTests.cs (1)
16Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (3)
18Assert.Equal(AccessibleRole.Row, accessibleObject.Role); 36Assert.Equal(AccessibleRole.Row, accessibleObject.Role); 316Assert.Equal(AccessibleRole.Grouping, selectedAccessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (1)
48Assert.Equal(AccessibleRole.RowHeader, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
19Assert.Equal(AccessibleRole.Grouping, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
19Assert.Equal(AccessibleRole.Grouping, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (7)
72[InlineData(true, AccessibleRole.Text)] 73[InlineData(false, AccessibleRole.None)] 74public void DataGridViewTextBoxEditingControlAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 92Array roles = Enum.GetValues(typeof(AccessibleRole)); 94foreach (AccessibleRole role in roles) 96if (role == AccessibleRole.Default) 107public void DataGridViewTextBoxEditingControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (7)
41AccessibleRole actual = dateTimePicker.AccessibilityObject.Role; 43Assert.Equal(AccessibleRole.ComboBox, actual); 62Array roles = Enum.GetValues(typeof(AccessibleRole)); 64foreach (AccessibleRole role in roles) 66if (role == AccessibleRole.Default) 77public void DateTimePickerAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 91public void DateTimePickerAccessibleObject_GetPropertyValue_LocalizedControlType_IsNull_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DomainUpDownAccessibleObjectTests.cs (7)
38AccessibleRole actual = domainUpDown.AccessibilityObject.Role; 40Assert.Equal(AccessibleRole.SpinButton, actual); 68Array roles = Enum.GetValues(typeof(AccessibleRole)); 70foreach (AccessibleRole role in roles) 72if (role == AccessibleRole.Default) 83public void DomainUpDownAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 96[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.SpinButton)]
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (1)
25Assert.Equal(AccessibleRole.Alert, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (1)
21Assert.Equal(AccessibleRole.Grouping, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\FlowLayoutPanel.FlowLayoutPanelAccessibleObjectTests.cs (2)
40AccessibleRole actual = flowLayoutPanel.AccessibilityObject.Role; 42Assert.Equal(AccessibleRole.Client, actual);
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (8)
32Assert.Equal(AccessibleRole.Client, accessibleObject.Role); 75Array roles = Enum.GetValues(typeof(AccessibleRole)); 77foreach (AccessibleRole role in roles) 79if (role is AccessibleRole.Default or AccessibleRole.Client) 90public void FormAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 108AccessibleRole actual = form.AccessibilityObject.Role; 110Assert.Equal(AccessibleRole.Client, actual);
System\Windows\Forms\AccessibleObjects\GroupBoxAccessibleObjectTests.cs (8)
50groupBox.AccessibleRole = AccessibleRole.Link; 54Assert.Equal(AccessibleRole.Link, groupBoxAccessibleObject.Role); 63AccessibleRole actual = groupBox.AccessibilityObject.Role; 65Assert.Equal(AccessibleRole.Grouping, actual); 95Array roles = Enum.GetValues(typeof(AccessibleRole)); 97foreach (AccessibleRole role in roles) 99if (role == AccessibleRole.Default) 110public void GroupBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (7)
21[InlineData(true, AccessibleRole.ScrollBar)] 22[InlineData(false, AccessibleRole.None)] 23public void HScrollBarAccessibleObject_Ctor_Default(bool createControl, AccessibleRole accessibleRole) 83Array roles = Enum.GetValues(typeof(AccessibleRole)); 85foreach (AccessibleRole role in roles) 87if (role == AccessibleRole.Default) 98public void HScrollBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
120AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
131AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
121Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role); 132Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
120AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
99Assert.Equal(AccessibleRole.Indicator, accessibleObject.Role); 110Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (8)
51label.AccessibleRole = AccessibleRole.Link; 55Assert.Equal(AccessibleRole.Link, labelAccessibleObject.Role); 64AccessibleRole actual = label.AccessibilityObject.Role; 66Assert.Equal(AccessibleRole.StaticText, actual); 98Array roles = Enum.GetValues(typeof(AccessibleRole)); 100foreach (AccessibleRole role in roles) 102if (role == AccessibleRole.Default) 113public void LabelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (2)
148AccessibleRole actual = accessibleObject.Role; 150Assert.Equal(AccessibleRole.Link, actual);
System\Windows\Forms\AccessibleObjects\LinkLabel.LinkLabelAccessibleObjectTests.cs (6)
36Array roles = Enum.GetValues(typeof(AccessibleRole)); 38foreach (AccessibleRole role in roles) 40if (role == AccessibleRole.Default) 51public void LinkLabelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 69AccessibleRole actual = linkLabel.AccessibilityObject.Role; 71Assert.Equal(AccessibleRole.StaticText, actual);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
179itemAccessibleObject.Role.Should().Be(AccessibleRole.ListItem);
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (8)
40[InlineData(true, AccessibleRole.List)] 41[InlineData(false, AccessibleRole.None)] 42public void ListBoxAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 52AccessibleRole actual = listBox.AccessibilityObject.Role; 60Array roles = Enum.GetValues(typeof(AccessibleRole)); 62foreach (AccessibleRole role in roles) 64if (role == AccessibleRole.Default) 75public void ListBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (7)
33[InlineData(true, AccessibleRole.List)] 34[InlineData(false, AccessibleRole.None)] 35public void ListViewAccessibleObject_DefaultRole_ReturnsCorrectValue(bool createControl, AccessibleRole expectedAccessibleRole) 1111Array roles = Enum.GetValues(typeof(AccessibleRole)); 1113foreach (AccessibleRole role in roles) 1115if (role == AccessibleRole.Default) 1126public void ListViewAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (7)
46Assert.Equal(AccessibleRole.Grouping, accessibleObject.Role); 71Assert.Equal(AccessibleRole.Grouping, (AccessibleRole)(int)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId)); 104Assert.Equal(AccessibleRole.Grouping, (AccessibleRole)(int)defaultGroupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId)); 105Assert.Equal(AccessibleRole.Grouping, (AccessibleRole)(int)groupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (1)
43Assert.Equal(AccessibleRole.ListItem, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (2)
26Assert.Equal(AccessibleRole.ListItem, item.AccessibilityObject.Role); 307Assert.Equal(AccessibleRole.CheckButton, itemAccessibleObject.Role);
System\Windows\Forms\AccessibleObjects\MaskedTextBox.MaskedTextBoxAccessibleObjectTests.cs (6)
41AccessibleRole actual = maskedTextBox.AccessibilityObject.Role; 43Assert.Equal(AccessibleRole.Text, actual); 49Array roles = Enum.GetValues(typeof(AccessibleRole)); 51foreach (AccessibleRole role in roles) 53if (role == AccessibleRole.Default) 64public void MaskedTextBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (9)
63AccessibleRole = AccessibleRole.Link 67var accessibleObjectRole = menuStripAccessibleObject.Role; 69Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 104AccessibleRole actual = menuStrip.AccessibilityObject.Role; 106Assert.Equal(AccessibleRole.MenuBar, actual); 112Array roles = Enum.GetValues(typeof(AccessibleRole)); 114foreach (AccessibleRole role in roles) 116if (role == AccessibleRole.Default) 127public void MenuStripAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
271Assert.Equal(AccessibleRole.Client, calendar.Role);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
175Assert.Equal(AccessibleRole.Table, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarButtonAccessibleObjectTests.cs (2)
93AccessibleRole actual = buttonAccessibleObject.Role; 95Assert.Equal(AccessibleRole.PushButton, actual);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (2)
91AccessibleRole actual = cellAccessibleObject.Role; 93Assert.Equal(AccessibleRole.ColumnHeader, actual);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarRowAccessibleObjectTests.cs (2)
89AccessibleRole actual = rowAccessibleObject.Role; 91Assert.Equal(AccessibleRole.Row, actual);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarWeekNumberCellAccessibleObjectTests.cs (2)
95AccessibleRole actual = cellAccessibleObject.Role; 97Assert.Equal(AccessibleRole.RowHeader, actual);
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (6)
42AccessibleRole actual = monthCalendar.AccessibilityObject.Role; 44Assert.Equal(AccessibleRole.Table, actual); 50Array roles = Enum.GetValues(typeof(AccessibleRole)); 52foreach (AccessibleRole role in roles) 54if (role == AccessibleRole.Default) 65public void MonthCalendarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarChildAccessibleObjectTests.cs (1)
35[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.None)]
System\Windows\Forms\AccessibleObjects\NumericUpDownAccessibleObjectTests.cs (7)
58AccessibleRole actual = numericUpDown.AccessibilityObject.Role; 60Assert.Equal(AccessibleRole.SpinButton, actual); 66Array roles = Enum.GetValues(typeof(AccessibleRole)); 68foreach (AccessibleRole role in roles) 70if (role == AccessibleRole.Default) 81public void NumericUpDownAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 94[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.SpinButton)]
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (4)
90Array roles = Enum.GetValues(typeof(AccessibleRole)); 92foreach (AccessibleRole role in roles) 94if (role == AccessibleRole.Default) 105public void PanelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (9)
63AccessibleRole = AccessibleRole.PushButton 69Assert.Equal(AccessibleRole.PushButton, pictureBoxAccessibleObject.Role); 74[InlineData(true, AccessibleRole.Client)] 75[InlineData(false, AccessibleRole.None)] 76public void PictureBoxAccessibleObject_DefaultRole_ReturnsExpected(bool createControl, AccessibleRole accessibleRole) 123Array roles = Enum.GetValues(typeof(AccessibleRole)); 125foreach (AccessibleRole role in roles) 127if (role == AccessibleRole.Default) 138public void PictureBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (6)
30Assert.Equal(AccessibleRole.ProgressBar, accessibilityObject.Role); 55Assert.Equal(AccessibleRole.None, accessibilityObject.Role); 124Array roles = Enum.GetValues(typeof(AccessibleRole)); 126foreach (AccessibleRole role in roles) 128if (role == AccessibleRole.Default) 139public void ProgressBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (7)
60[InlineData(true, AccessibleRole.Client)] 61[InlineData(false, AccessibleRole.None)] 62public void PropertyGridAccessibleObject_ControlType_IsPane_IfAccessibleRoleIsDefault(bool createControl, AccessibleRole expectedRole) 82Array roles = Enum.GetValues(typeof(AccessibleRole)); 84foreach (AccessibleRole role in roles) 86if (role == AccessibleRole.Default) 97public void PropertyGridAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\PropertyGridToolStrip.PropertyGridToolStripAccessibleObjectTests.cs (2)
44AccessibleRole actual = propertyGridToolStrip.AccessibilityObject.Role; 46Assert.Equal(AccessibleRole.ToolBar, actual);
System\Windows\Forms\AccessibleObjects\PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObjectTests.cs (1)
35Assert.Equal(AccessibleRole.RadioButton, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (2)
155AccessibleRole actual = propertyGrid.GridViewAccessibleObject.Role; 157Assert.Equal(AccessibleRole.Table, actual);
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (7)
124AccessibleRole = AccessibleRole.PushButton 130Assert.Equal(AccessibleRole.PushButton, radioButtonAccessibleObject.Role); 141Assert.Equal(AccessibleRole.RadioButton, radioButtonAccessibleObject.Role); 227Array roles = Enum.GetValues(typeof(AccessibleRole)); 229foreach (AccessibleRole role in roles) 231if (role == AccessibleRole.Default) 242public void RadioButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (7)
18[InlineData(true, AccessibleRole.ScrollBar)] 19[InlineData(false, AccessibleRole.None)] 20public void ScrollBarAccessibleObject_Ctor_Default(bool createControl, AccessibleRole accessibleRole) 77Array roles = Enum.GetValues(typeof(AccessibleRole)); 79foreach (AccessibleRole role in roles) 81if (role == AccessibleRole.Default) 92public void ScrollBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\SplitContainer.SplitContainerAccessibleObjectTests.cs (6)
40AccessibleRole actual = splitContainer.AccessibilityObject.Role; 42Assert.Equal(AccessibleRole.Client, actual); 48Array roles = Enum.GetValues(typeof(AccessibleRole)); 50foreach (AccessibleRole role in roles) 52if (role == AccessibleRole.Default) 63public void SplitContainerAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\Splitter.SplitterAccessibleObjectTests.cs (9)
63AccessibleRole = AccessibleRole.PushButton 69Assert.Equal(AccessibleRole.PushButton, splitterAccessibleObject.Role); 74[InlineData(true, AccessibleRole.Client)] 75[InlineData(false, AccessibleRole.None)] 76public void SplitterAccessibleObject_DefaultRole_ReturnsNone_IfControlIsNotCreated(bool createControl, AccessibleRole accessibleRole) 128Array roles = Enum.GetValues(typeof(AccessibleRole)); 130foreach (AccessibleRole role in roles) 132if (role == AccessibleRole.Default) 143public void SplitterAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (9)
43AccessibleRole = AccessibleRole.Link 47var accessibleObjectRole = statusStripAccessibleObject.Role; 49Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 84AccessibleRole actual = statusStrip.AccessibilityObject.Role; 86Assert.Equal(AccessibleRole.StatusBar, actual); 92Array roles = Enum.GetValues(typeof(AccessibleRole)); 94foreach (AccessibleRole role in roles) 96if (role == AccessibleRole.Default) 107public void StatusStripAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (6)
43AccessibleRole actual = tabControl.AccessibilityObject.Role; 45Assert.Equal(AccessibleRole.PageTabList, actual); 51Array roles = Enum.GetValues(typeof(AccessibleRole)); 53foreach (AccessibleRole role in roles) 55if (role == AccessibleRole.Default) 66public void TabControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (3)
98[InlineData(true, AccessibleRole.PageTab)] 99[InlineData(false, AccessibleRole.None)] 100public void TabAccessibleObject_Role_ReturnsNone_IfHandleIsNotCreated(bool createControl, AccessibleRole expectedAccessibleRole)
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (7)
37[InlineData(true, AccessibleRole.Client)] 38[InlineData(false, AccessibleRole.None)] 39public void TabPageAccessibilityObject_Role_ReturnsExpected(bool createControl, AccessibleRole expectedAccessibleRole) 54Array roles = Enum.GetValues(typeof(AccessibleRole)); 56foreach (AccessibleRole role in roles) 58if (role == AccessibleRole.Default) 69public void TabPageAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TextBoxAccessibleObjectTests.cs (6)
58AccessibleRole actual = textBox.AccessibilityObject.Role; 60Assert.Equal(AccessibleRole.Text, actual); 66Array roles = Enum.GetValues(typeof(AccessibleRole)); 68foreach (AccessibleRole role in roles) 70if (role == AccessibleRole.Default) 81public void TextBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (7)
117[InlineData(true, AccessibleRole.Text, (int)UIA_CONTROLTYPE_ID.UIA_EditControlTypeId)] 118[InlineData(false, AccessibleRole.None, (int)UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId)] 119public void TextBoxBaseAccessibleObject_ControlType_IsExpected_IfAccessibleRoleIsDefault(bool createControl, AccessibleRole expectedRole, int expectedType) 139Array roles = Enum.GetValues(typeof(AccessibleRole)); 141foreach (AccessibleRole role in roles) 143if (role == AccessibleRole.Default) 154public void TextBoxBaseAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (8)
19Assert.Equal(AccessibleRole.ToolBar, accessibleObject.Role); 53AccessibleRole = AccessibleRole.Link 57var accessibleObjectRole = toolStripAccessibleObject.Role; 59Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 90Array roles = Enum.GetValues(typeof(AccessibleRole)); 92foreach (AccessibleRole role in roles) 94if (role == AccessibleRole.Default) 105public void ToolStripAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (11)
37AccessibleRole actual = toolStripButton.AccessibilityObject.Role; 39Assert.Equal(AccessibleRole.PushButton, actual); 50AccessibleRole actual = toolStripButton.AccessibilityObject.Role; 52Assert.Equal(AccessibleRole.CheckButton, actual); 63AccessibleRole actual = toolStripButton.AccessibilityObject.Role; 65Assert.Equal(AccessibleRole.CheckButton, actual); 70Array roles = Enum.GetValues(typeof(AccessibleRole)); 72foreach (AccessibleRole role in roles) 74if (role == AccessibleRole.Default) 85public void ToolStripButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 149AccessibleRole = AccessibleRole.CheckButton
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObjectTests.cs (5)
35Assert.Equal(AccessibleRole.ComboBox, accessibleObject.Role); 42Array roles = Enum.GetValues(typeof(AccessibleRole)); 44foreach (AccessibleRole role in roles) 46if (role == AccessibleRole.Default) 57public void ToolStripComboBoxControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (2)
43AccessibleRole testRole = AccessibleRole.Cell;
System\Windows\Forms\AccessibleObjects\ToolStripDropDown.ToolStripDropDownAccessibleObjectTests.cs (6)
41AccessibleRole actual = accessibleObject.Role; 43Assert.Equal(AccessibleRole.MenuPopup, actual); 49Array roles = Enum.GetValues(typeof(AccessibleRole)); 51foreach (AccessibleRole role in roles) 53if (role == AccessibleRole.Default) 64public void ToolStripDropDownAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (6)
38AccessibleRole actual = toolStripDropDownButton.AccessibilityObject.Role; 40Assert.Equal(AccessibleRole.MenuItem, actual); 45Array roles = Enum.GetValues(typeof(AccessibleRole)); 47foreach (AccessibleRole role in roles) 49if (role == AccessibleRole.Default) 60public void ToolStripDropDownButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (4)
30control.AccessibleRole = AccessibleRole.Default; 33Assert.Equal(AccessibleRole.MenuItem, accessibleObject.Role); 39AccessibleRole testRole = AccessibleRole.Cell;
System\Windows\Forms\AccessibleObjects\ToolStripGrip.ToolStripGripAccessibleObjectTests.cs (6)
37AccessibleRole actual = toolStripGrip.AccessibilityObject.Role; 39Assert.Equal(AccessibleRole.Grip, actual); 44Array roles = Enum.GetValues(typeof(AccessibleRole)); 46foreach (AccessibleRole role in roles) 48if (role == AccessibleRole.Default) 59public void ToolStripGripAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (9)
20AccessibleRole = AccessibleRole.MenuBar 32Assert.Equal(AccessibleRole.MenuBar, accessibleObject.Role); 54item.AccessibleRole = AccessibleRole.Link; 57var accessibleObjectRole = toolStripItemAccessibleObject.Role; 59Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 143Array roles = Enum.GetValues(typeof(AccessibleRole)); 145foreach (AccessibleRole role in roles) 147if (role == AccessibleRole.Default) 158public void ToolStripItemAccessibleObject_GetPropertyValue_ControlTypeProperty_ReturnsCorrectValue(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripLabel.ToolStripLabelAccessibleObjectTests.cs (8)
36[InlineData(true, AccessibleRole.Link)] 37[InlineData(false, AccessibleRole.StaticText)] 38public void ToolStripLabelAccessibleObject_Role_IsExpected_ByDefault(bool isLink, AccessibleRole expectedRole) 44AccessibleRole actual = toolStripLabel.AccessibilityObject.Role; 51Array roles = Enum.GetValues(typeof(AccessibleRole)); 53foreach (AccessibleRole role in roles) 55if (role == AccessibleRole.Default) 66public void ToolStripLabelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (6)
84AccessibleRole actual = toolStripMenuItem.AccessibilityObject.Role; 86Assert.Equal(AccessibleRole.MenuItem, actual); 91Array roles = Enum.GetValues(typeof(AccessibleRole)); 93foreach (AccessibleRole role in roles) 95if (role == AccessibleRole.Default) 106public void ToolStripMenuItemAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripNumericUpDown.ToolStripNumericUpDownAccessibleObjectTests.cs (8)
34[InlineData(true, AccessibleRole.Client)] 35[InlineData(false, AccessibleRole.None)] 36public void ToolStripNumericUpDownAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 47AccessibleRole actual = toolStripNumericUpDown.AccessibilityObject.Role; 55Array roles = Enum.GetValues(typeof(AccessibleRole)); 57foreach (AccessibleRole role in roles) 59if (role == AccessibleRole.Default) 70public void ToolStripNumericUpDownAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (5)
45Assert.Equal(AccessibleRole.MenuPopup, actual); 51Array roles = Enum.GetValues(typeof(AccessibleRole)); 53foreach (AccessibleRole role in roles) 55if (role == AccessibleRole.Default) 66public void ToolStripOverflowAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (6)
42AccessibleRole actual = toolStripOverflowButton.AccessibilityObject.Role; 44Assert.Equal(AccessibleRole.MenuItem, actual); 50Array roles = Enum.GetValues(typeof(AccessibleRole)); 52foreach (AccessibleRole role in roles) 54if (role == AccessibleRole.Default) 65public void ToolStripOverflowButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (7)
34[InlineData(true, AccessibleRole.ProgressBar)] 35[InlineData(false, AccessibleRole.None)] 36public void ToolStripProgressBarControlAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 54Array roles = Enum.GetValues(typeof(AccessibleRole)); 56foreach (AccessibleRole role in roles) 58if (role == AccessibleRole.Default) 69public void ToolStripProgressBarControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripSeparator.ToolStripSeparatorAccessibleObjectTests.cs (6)
37AccessibleRole actual = toolStripSeparator.AccessibilityObject.Role; 39Assert.Equal(AccessibleRole.Separator, actual); 44Array roles = Enum.GetValues(typeof(AccessibleRole)); 46foreach (AccessibleRole role in roles) 48if (role == AccessibleRole.Default) 59public void ToolStripSeparatorAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonAccessibleObjectTests.cs (6)
37AccessibleRole actual = toolStripSplitButton.AccessibilityObject.Role; 39Assert.Equal(AccessibleRole.MenuItem, actual); 44Array roles = Enum.GetValues(typeof(AccessibleRole)); 46foreach (AccessibleRole role in roles) 48if (role == AccessibleRole.Default) 59public void ToolStripSplitButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripStatusLabel.ToolStripStatusLabelAccessibleObjectTests.cs (8)
35[InlineData(true, AccessibleRole.Link)] 36[InlineData(false, AccessibleRole.StaticText)] 37public void ToolStripStatusLabelAccessibleObject_Role_IsExpected_ByDefault(bool isLink, AccessibleRole expectedRole) 43AccessibleRole actual = toolStripStatusLabel.AccessibilityObject.Role; 50Array roles = Enum.GetValues(typeof(AccessibleRole)); 52foreach (AccessibleRole role in roles) 54if (role == AccessibleRole.Default) 65public void ToolStripStatusLabelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxAccessibleObjectTests.cs (3)
41AccessibleRole = AccessibleRole.Link 45var accessibleObjectRole = toolStripTextBoxAccessibleObject.Role; 47Assert.Equal(AccessibleRole.Link, accessibleObjectRole);
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxControlAccessibleObjectTests.cs (7)
90[InlineData(true, AccessibleRole.Text)] 91[InlineData(false, AccessibleRole.None)] 92public void ToolStripTextBoxControlAccessibleObject_Default_Role_IsExpected(bool createControl, AccessibleRole expectedRole) 111Array roles = Enum.GetValues(typeof(AccessibleRole)); 113foreach (AccessibleRole role in roles) 115if (role == AccessibleRole.Default) 126public void ToolStripTextBoxControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (7)
33Assert.Equal(AccessibleRole.Slider, accessibilityObject.Role); 56Assert.Equal(AccessibleRole.Slider, accessibilityObject.Role); 276Assert.Equal(AccessibleRole.Slider, trackBar.AccessibilityObject.Role); 282Array roles = Enum.GetValues(typeof(AccessibleRole)); 284foreach (AccessibleRole role in roles) 286if (role == AccessibleRole.Default) 297public void TrackBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarChildAccessibleObjectTests.cs (1)
115accessibleObject.Role.Should().Be(AccessibleRole.None);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (3)
140AccessibleRole accessibleRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (3)
140AccessibleRole accessibleRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (3)
73AccessibleRole accessibleRole = createControl ? AccessibleRole.Indicator : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
338Assert.Equal(AccessibleRole.OutlineItem, node.AccessibilityObject.Role); 348Assert.Equal(AccessibleRole.CheckButton, node.AccessibilityObject.Role);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (2)
47AccessibleRole actual = control.AccessibilityObject.Role; 49Assert.Equal(AccessibleRole.Outline, actual);
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObjectTests.cs (1)
31[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.PushButton)]
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObjectTests.cs (7)
46AccessibleRole actual = upDownButtons.AccessibilityObject.Role; 48Assert.Equal(AccessibleRole.SpinButton, actual); 54Array roles = Enum.GetValues(typeof(AccessibleRole)); 56foreach (AccessibleRole role in roles) 58if (role == AccessibleRole.Default) 69public void UpDownButtonsAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 148[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.SpinButton)]
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (7)
145[InlineData(true, AccessibleRole.Text, (int)UIA_CONTROLTYPE_ID.UIA_EditControlTypeId)] 146[InlineData(false, AccessibleRole.None, (int)UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId)] 147public void UpDownEditAccessibleObject_ControlType_IsExpected_IfAccessibleRoleIsDefault(bool createControl, AccessibleRole expectedRole, int expectedType) 168Array roles = Enum.GetValues(typeof(AccessibleRole)); 170foreach (AccessibleRole role in roles) 172if (role == AccessibleRole.Default) 183public void UpDownEditAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
120AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
131AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
121Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role); 132Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
120AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
99Assert.Equal(AccessibleRole.Indicator, accessibleObject.Role); 110Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (7)
20[InlineData(true, AccessibleRole.ScrollBar)] 21[InlineData(false, AccessibleRole.None)] 22public void VScrollBarAccessibleObject_Ctor_Default(bool createControl, AccessibleRole accessibleRole) 82Array roles = Enum.GetValues(typeof(AccessibleRole)); 84foreach (AccessibleRole role in roles) 86if (role == AccessibleRole.Default) 97public void VScrollBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleRoleControlTypeMapTests.cs (72)
12Array roles = Enum.GetValues(typeof(AccessibleRole)); 14foreach (AccessibleRole role in roles) 22public void AccessibleRoleControlTypeMap_Contains_AllRoles(AccessibleRole role) 34AccessibleRole incorrectRole = (AccessibleRole)(-999); 41yield return new object[] { AccessibleRole.Alert, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 42yield return new object[] { AccessibleRole.Animation, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 43yield return new object[] { AccessibleRole.Application, UIA_CONTROLTYPE_ID.UIA_WindowControlTypeId }; 44yield return new object[] { AccessibleRole.Border, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 45yield return new object[] { AccessibleRole.ButtonDropDown, UIA_CONTROLTYPE_ID.UIA_SplitButtonControlTypeId }; 46yield return new object[] { AccessibleRole.ButtonDropDownGrid, UIA_CONTROLTYPE_ID.UIA_ButtonControlTypeId }; 47yield return new object[] { AccessibleRole.ButtonMenu, UIA_CONTROLTYPE_ID.UIA_MenuItemControlTypeId }; 48yield return new object[] { AccessibleRole.Caret, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 49yield return new object[] { AccessibleRole.Cell, UIA_CONTROLTYPE_ID.UIA_DataItemControlTypeId }; 50yield return new object[] { AccessibleRole.Character, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 51yield return new object[] { AccessibleRole.Chart, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 52yield return new object[] { AccessibleRole.CheckButton, UIA_CONTROLTYPE_ID.UIA_CheckBoxControlTypeId }; 53yield return new object[] { AccessibleRole.Client, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 54yield return new object[] { AccessibleRole.Clock, UIA_CONTROLTYPE_ID.UIA_ButtonControlTypeId }; 55yield return new object[] { AccessibleRole.Column, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 56yield return new object[] { AccessibleRole.ColumnHeader, UIA_CONTROLTYPE_ID.UIA_HeaderControlTypeId }; 57yield return new object[] { AccessibleRole.ComboBox, UIA_CONTROLTYPE_ID.UIA_ComboBoxControlTypeId }; 58yield return new object[] { AccessibleRole.Cursor, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 59yield return new object[] { AccessibleRole.Default, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 60yield return new object[] { AccessibleRole.Diagram, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 61yield return new object[] { AccessibleRole.Dial, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 62yield return new object[] { AccessibleRole.Dialog, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 63yield return new object[] { AccessibleRole.Document, UIA_CONTROLTYPE_ID.UIA_DocumentControlTypeId }; 64yield return new object[] { AccessibleRole.DropList, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 65yield return new object[] { AccessibleRole.Equation, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 66yield return new object[] { AccessibleRole.Graphic, UIA_CONTROLTYPE_ID.UIA_ImageControlTypeId }; 67yield return new object[] { AccessibleRole.Grip, UIA_CONTROLTYPE_ID.UIA_ThumbControlTypeId }; 68yield return new object[] { AccessibleRole.Grouping, UIA_CONTROLTYPE_ID.UIA_GroupControlTypeId }; 69yield return new object[] { AccessibleRole.HelpBalloon, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 70yield return new object[] { AccessibleRole.HotkeyField, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 71yield return new object[] { AccessibleRole.Indicator, UIA_CONTROLTYPE_ID.UIA_ThumbControlTypeId }; 72yield return new object[] { AccessibleRole.IpAddress, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 73yield return new object[] { AccessibleRole.Link, UIA_CONTROLTYPE_ID.UIA_HyperlinkControlTypeId }; 74yield return new object[] { AccessibleRole.List, UIA_CONTROLTYPE_ID.UIA_ListControlTypeId }; 75yield return new object[] { AccessibleRole.ListItem, UIA_CONTROLTYPE_ID.UIA_ListItemControlTypeId }; 76yield return new object[] { AccessibleRole.MenuBar, UIA_CONTROLTYPE_ID.UIA_MenuBarControlTypeId }; 77yield return new object[] { AccessibleRole.MenuItem, UIA_CONTROLTYPE_ID.UIA_MenuItemControlTypeId }; 78yield return new object[] { AccessibleRole.MenuPopup, UIA_CONTROLTYPE_ID.UIA_MenuControlTypeId }; 79yield return new object[] { AccessibleRole.None, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 80yield return new object[] { AccessibleRole.Outline, UIA_CONTROLTYPE_ID.UIA_TreeControlTypeId }; 81yield return new object[] { AccessibleRole.OutlineButton, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 82yield return new object[] { AccessibleRole.OutlineItem, UIA_CONTROLTYPE_ID.UIA_TreeItemControlTypeId }; 83yield return new object[] { AccessibleRole.PageTab, UIA_CONTROLTYPE_ID.UIA_TabItemControlTypeId }; 84yield return new object[] { AccessibleRole.PageTabList, UIA_CONTROLTYPE_ID.UIA_TabControlTypeId }; 85yield return new object[] { AccessibleRole.Pane, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 86yield return new object[] { AccessibleRole.ProgressBar, UIA_CONTROLTYPE_ID.UIA_ProgressBarControlTypeId }; 87yield return new object[] { AccessibleRole.PropertyPage, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 88yield return new object[] { AccessibleRole.PushButton, UIA_CONTROLTYPE_ID.UIA_ButtonControlTypeId }; 89yield return new object[] { AccessibleRole.RadioButton, UIA_CONTROLTYPE_ID.UIA_RadioButtonControlTypeId }; 90yield return new object[] { AccessibleRole.Row, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 91yield return new object[] { AccessibleRole.RowHeader, UIA_CONTROLTYPE_ID.UIA_HeaderControlTypeId }; 92yield return new object[] { AccessibleRole.ScrollBar, UIA_CONTROLTYPE_ID.UIA_ScrollBarControlTypeId }; 93yield return new object[] { AccessibleRole.Separator, UIA_CONTROLTYPE_ID.UIA_SeparatorControlTypeId }; 94yield return new object[] { AccessibleRole.Slider, UIA_CONTROLTYPE_ID.UIA_SliderControlTypeId }; 95yield return new object[] { AccessibleRole.Sound, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 96yield return new object[] { AccessibleRole.SpinButton, UIA_CONTROLTYPE_ID.UIA_SpinnerControlTypeId }; 97yield return new object[] { AccessibleRole.SplitButton, UIA_CONTROLTYPE_ID.UIA_SplitButtonControlTypeId }; 98yield return new object[] { AccessibleRole.StaticText, UIA_CONTROLTYPE_ID.UIA_TextControlTypeId }; 99yield return new object[] { AccessibleRole.StatusBar, UIA_CONTROLTYPE_ID.UIA_StatusBarControlTypeId }; 100yield return new object[] { AccessibleRole.Table, UIA_CONTROLTYPE_ID.UIA_TableControlTypeId }; 101yield return new object[] { AccessibleRole.Text, UIA_CONTROLTYPE_ID.UIA_EditControlTypeId }; 102yield return new object[] { AccessibleRole.TitleBar, UIA_CONTROLTYPE_ID.UIA_TitleBarControlTypeId }; 103yield return new object[] { AccessibleRole.ToolBar, UIA_CONTROLTYPE_ID.UIA_ToolBarControlTypeId }; 104yield return new object[] { AccessibleRole.ToolTip, UIA_CONTROLTYPE_ID.UIA_ToolTipControlTypeId }; 105yield return new object[] { AccessibleRole.WhiteSpace, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 106yield return new object[] { AccessibleRole.Window, UIA_CONTROLTYPE_ID.UIA_WindowControlTypeId }; 111public void AccessibleRoleControlTypeMap_GetControlType_ReturnsExpectedValue(AccessibleRole role, int expectedType)
System\Windows\Forms\AxHostTests.cs (2)
33Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 127Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ButtonBaseTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ButtonTests.cs (16)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 1009Assert.Equal(AccessibleRole.None, instance.Role); 1030Assert.Equal(AccessibleRole.PushButton, instance.Role); 1037[InlineData(true, FlatStyle.Flat, AccessibleStates.Pressed | AccessibleStates.Focusable, AccessibleRole.PushButton)] 1038[InlineData(true, FlatStyle.Popup, AccessibleStates.Pressed | AccessibleStates.Focusable, AccessibleRole.PushButton)] 1039[InlineData(true, FlatStyle.Standard, AccessibleStates.Pressed | AccessibleStates.Focusable, AccessibleRole.PushButton)] 1040[InlineData(true, FlatStyle.System, AccessibleStates.Focusable, AccessibleRole.PushButton)] 1041[InlineData(false, FlatStyle.Flat, AccessibleStates.None, AccessibleRole.None)] 1042[InlineData(false, FlatStyle.Popup, AccessibleStates.None, AccessibleRole.None)] 1043[InlineData(false, FlatStyle.Standard, AccessibleStates.None, AccessibleRole.None)] 1044[InlineData(false, FlatStyle.System, AccessibleStates.None, AccessibleRole.None)] 1045public void Button_CreateAccessibilityInstance_InvokeMouseDown_ReturnsExpected(bool createControl, FlatStyle flatStyle, AccessibleStates expectedState, AccessibleRole expectedRole) 1077AccessibleRole = AccessibleRole.HelpBalloon 1086Assert.Equal(AccessibleRole.HelpBalloon, instance.Role); 1099AccessibleRole = AccessibleRole.HelpBalloon 1107Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\CheckBoxTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ComboBoxTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ContainerControlTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ControlTests.cs (5)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 109Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 205Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 301Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 397Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ControlTests.Methods.cs (3)
394[InlineData(true, AccessibleRole.Client)] 395[InlineData(false, AccessibleRole.None)] 396public void Control_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createHandle, AccessibleRole expectedAccessibleRole)
System\Windows\Forms\ControlTests.Properties.cs (4)
155[EnumData<AccessibleRole>] 156public void Control_AccessibleRole_Set_GetReturnsExpected(AccessibleRole value) 172[InvalidEnumData<AccessibleRole>] 173public void Control_AccessibleRole_SetInvalidValue_ThrowsInvalidEnumArgumentException(AccessibleRole value)
System\Windows\Forms\DataGridViewCellTests.cs (1)
3450Assert.Equal(AccessibleRole.Cell, instance.Role);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (6)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 973[InlineData(true, AccessibleRole.Text)] 974[InlineData(false, AccessibleRole.None)] 975public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createControl, AccessibleRole expectedAccessibleRole) 998AccessibleRole = AccessibleRole.HelpBalloon 1003Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\DateTimePickerTests.cs (1)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\DomainUpDownTests.cs (3)
940instance.Role.Should().Be(AccessibleRole.SpinButton); 948_sub.AccessibleRole = AccessibleRole.HelpBalloon; 953instance.Role.Should().Be(AccessibleRole.HelpBalloon);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\FormTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\GroupBoxTests.cs (4)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 1385Assert.Equal(AccessibleRole.Grouping, instance.Role); 1395AccessibleRole = AccessibleRole.HelpBalloon 1400Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\HScrollBarTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\LabelTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ListBoxTests.cs (4)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 4749[InlineData(true, AccessibleRole.List)] 4750[InlineData(false, AccessibleRole.None)] 4751public void ListBox_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createControl, AccessibleRole accessibleRole)
System\Windows\Forms\ListControlTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ListViewTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\MdiClientTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\MdiControlStripTests.cs (1)
22Assert.Equal(AccessibleRole.Default, mdiControlStrip.AccessibleRole);
System\Windows\Forms\MenuStripTests.cs (4)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 416Assert.Equal(AccessibleRole.MenuBar, instance.Role); 426AccessibleRole = AccessibleRole.HelpBalloon 431Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\MonthCalendarTests.cs (3)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 2295Assert.Equal(AccessibleRole.Table, instance.Role); 4451cellAccessibleObject.Role.Should().Be(AccessibleRole.Cell);
System\Windows\Forms\PanelTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\PictureBoxTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibilityObjectTests.cs (1)
21Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\ProgressBarTests.cs (4)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 1759[InlineData(true, AccessibleRole.ProgressBar)] 1760[InlineData(false, AccessibleRole.None)] 1761public void ProgressBar_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createControl, AccessibleRole expectedAccessibleRole)
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\CommandsPane.CommandsPaneAccessibleObjectTests.cs (4)
37[InlineData(true, AccessibleRole.Client)] 38[InlineData(false, AccessibleRole.None)] 39public void CommandsPaneAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 50AccessibleRole actual = commandsPane.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DetailsButton.DetailsButtonAccessibleObjectTests.cs (4)
41[InlineData(true, AccessibleRole.PushButton)] 42[InlineData(false, AccessibleRole.None)] 43public void DetailsButtonAccessibleObject_Role_IsPushButton_ByDefault(bool createControl, AccessibleRole expectedRole) 55AccessibleRole actual = detailsButton.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DropDownButton.DropDownButtonAccessibleObjectTests.cs (3)
36[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.PushButton)] 61AccessibleRole actual = dropDownButton.AccessibilityObject.Role; 63Assert.Equal(AccessibleRole.PushButton, actual);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\HelpPane.HelpPaneAccessibleObjectTests.cs (4)
38[InlineData(true, AccessibleRole.Client)] 39[InlineData(false, AccessibleRole.None)] 40public void HelpPaneAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 51AccessibleRole actual = helpPane.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewListBoxAccessibleObjectTests.cs (4)
42[InlineData(true, AccessibleRole.List)] 43[InlineData(false, AccessibleRole.None)] 44public void GridViewListBoxAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 56AccessibleRole actual = gridViewListBox.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (4)
168[InlineData(true, AccessibleRole.Text)] 169[InlineData(false, AccessibleRole.None)] 170public void GridViewTextBoxAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 182AccessibleRole actual = gridView.EditAccessibleObject.Role;
System\Windows\Forms\PropertyGridTests.cs (3)
28Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 3881Assert.Equal(AccessibleRole.RadioButton, categoryButton.AccessibleRole); 3882Assert.Equal(AccessibleRole.RadioButton, alphaButton.AccessibleRole);
System\Windows\Forms\RadioButtonTests.cs (10)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 413Assert.Equal(AccessibleRole.RadioButton, instance.Role); 434Assert.Equal(AccessibleRole.RadioButton, instance.Role); 446AccessibleRole = AccessibleRole.HelpBalloon 457Assert.Equal(AccessibleRole.HelpBalloon, instance.Role); 469AccessibleRole = AccessibleRole.HelpBalloon 479Assert.Equal(AccessibleRole.HelpBalloon, instance.Role); 521Assert.Equal(AccessibleRole.RadioButton, instance.Role); 544Assert.Equal(AccessibleRole.RadioButton, instance.Role); 566Assert.Equal(AccessibleRole.RadioButton, instance.Role);
System\Windows\Forms\RichTextBoxTests.cs (1)
32Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ScrollableControlTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ScrollBarTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\SplitterPanelTests.cs (1)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\SplitterTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\StatusStripTests.cs (2)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 867Assert.Equal(AccessibleRole.StatusBar, instance.Role);
System\Windows\Forms\TabControlTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\TableLayoutPanel.TableLayoutPanelAccessibleObectTests.cs (6)
40AccessibleRole actual = tableLayoutPanel.AccessibilityObject.Role; 42Assert.Equal(AccessibleRole.Client, actual); 48Array roles = Enum.GetValues(typeof(AccessibleRole)); 50foreach (AccessibleRole role in roles) 52if (role == AccessibleRole.Default) 63public void TableLayoutPanelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\TableLayoutPanelTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\TabPageTests.cs (2)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 134Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (7)
50AccessibleRole actual = accessibleObject.Role; 52Assert.Equal(AccessibleRole.PushButton, actual); 58Array roles = Enum.GetValues(typeof(AccessibleRole)); 60foreach (AccessibleRole role in roles) 62if (role == AccessibleRole.Default) 73public void ToolStripAccessibleObjectWrapperForItemsOnOverflow_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 82AccessibleRole actual = accessibleObject.Role;
System\Windows\Forms\ToolStripButtonTests.cs (12)
23Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 104Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 191Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 281Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 370Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 468Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 1004Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role); 1015AccessibleRole = AccessibleRole.HelpBalloon 1018Assert.Equal(AccessibleRole.HelpBalloon, accessibleObject.Role); 1032Assert.Equal(AccessibleRole.CheckButton, accessibleObject.Role); 1051Assert.Equal(AccessibleRole.CheckButton, accessibleObject.Role); 1070Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStripControlHostTests.cs (13)
26AccessibleRole = AccessibleRole.HelpBalloon, 53Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 224[EnumData<AccessibleRole>] 225public void ToolStripControlHost_AccessibleRole_Set_GetReturnsExpected(AccessibleRole value) 244[InvalidEnumData<AccessibleRole>] 245public void ToolStripControlHost_AccessibleRole_SetInvalid_ThrowsInvalidEnumArgumentException(AccessibleRole value) 2506[InlineData(true, AccessibleRole.Client)] 2507[InlineData(false, AccessibleRole.None)] 2508public void ToolStripControlHost_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createControl, AccessibleRole expectedAccessibleRole) 2534AccessibleRole = AccessibleRole.HelpBalloon 2536c.AccessibleRole = AccessibleRole.Alert; 2539Assert.Equal(AccessibleRole.Alert, accessibleObject.Role); 2554Assert.Equal(AccessibleRole.Default, accessibleObject.Role);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
22Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 112Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 211Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 311Assert.Equal(AccessibleRole.Default, item.AccessibleRole);
System\Windows\Forms\ToolStripDropDownTests.cs (4)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 2928Assert.Equal(AccessibleRole.MenuPopup, instance.Role); 2938AccessibleRole = AccessibleRole.HelpBalloon 2943Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\ToolStripItemTests.cs (8)
25Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 111Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 206Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 354[EnumData<AccessibleRole>] 355public void ToolStripItem_AccessibleRole_Set_GetReturnsExpected(AccessibleRole value) 369[InvalidEnumData<AccessibleRole>] 370public void ToolStripItem_AccessibleRole_SetInvalid_ThrowsInvalidEnumArgumentException(AccessibleRole value) 9838Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role);
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
23Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 270AccessibleRole = AccessibleRole.MenuItem,
System\Windows\Forms\ToolStripPanelTests.cs (1)
19Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStripSeparatorTests.cs (4)
23Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 725Assert.Equal(AccessibleRole.Separator, accessibleObject.Role); 735AccessibleRole = AccessibleRole.HelpBalloon 738Assert.Equal(AccessibleRole.HelpBalloon, accessibleObject.Role);
System\Windows\Forms\ToolStripTests.cs (5)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 182Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 4211Assert.Equal(AccessibleRole.ToolBar, instance.Role); 4221AccessibleRole = AccessibleRole.HelpBalloon 4226Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\TreeViewTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\UserControlTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\VScrollBarTests.cs (1)
19Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
TextBoxTests.cs (6)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 449[InlineData(true, AccessibleRole.Text)] 450[InlineData(false, AccessibleRole.None)] 451public void TextBox_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createControl, AccessibleRole expectedAccessibleRole) 475AccessibleRole = AccessibleRole.HelpBalloon 480Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
TrackBarTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
WinFormsControlsTest (3)
MultipleControls.Designer.cs (2)
90this.label1.AccessibleRole = System.Windows.Forms.AccessibleRole.Indicator; 213this.groupBox1.AccessibleRole = System.Windows.Forms.AccessibleRole.Table;
ToolStripTests.Designer.cs (1)
203this.toolStrip2_Button6.AccessibleRole = AccessibleRole.CheckButton;