1187 references to AccessibleRole
System.Windows.Forms (277)
System\Windows\Forms\Accessibility\AccessibleObject.cs (37)
324public virtual AccessibleRole Role => SystemIAccessible.TryGetRole(CHILDID_SELF); 658AccessibleRole.MenuItem 659or AccessibleRole.Link 660or AccessibleRole.PushButton 661or AccessibleRole.ButtonDropDown 662or AccessibleRole.ButtonMenu 663or AccessibleRole.ButtonDropDownGrid 664or AccessibleRole.Clock 665or AccessibleRole.SplitButton 666or AccessibleRole.CheckButton 667or AccessibleRole.Cell 668or AccessibleRole.ListItem => true, 669AccessibleRole.Default 670or AccessibleRole.None 671or AccessibleRole.Sound 672or AccessibleRole.Cursor 673or AccessibleRole.Caret 674or AccessibleRole.Alert 675or AccessibleRole.Client 676or AccessibleRole.Chart 677or AccessibleRole.Dialog 678or AccessibleRole.Border 679or AccessibleRole.Column 680or AccessibleRole.Row 681or AccessibleRole.HelpBalloon 682or AccessibleRole.Character 683or AccessibleRole.PageTab 684or AccessibleRole.PropertyPage 685or AccessibleRole.DropList 686or AccessibleRole.Dial 687or AccessibleRole.HotkeyField 688or AccessibleRole.Diagram 689or AccessibleRole.Animation 690or AccessibleRole.Equation 691or AccessibleRole.WhiteSpace 692or AccessibleRole.IpAddress 693or 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)
426public override AccessibleRole Role 430AccessibleRole role = Owner?.AccessibleRole ?? AccessibleRole.Default; 431return role != AccessibleRole.Default ? role : base.Role;
System\Windows\Forms\Control.cs (4)
510[DefaultValue(AccessibleRole.Default)] 512public AccessibleRole AccessibleRole 514get => Properties.GetValueOrDefault(s_accessibleRoleProperty, AccessibleRole.Default); 518Properties.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)
49public override AccessibleRole Role => this.GetOwnerAccessibleRole(AccessibleRole.Table); 213return (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)
120public 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)
136public 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)
87public 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)
428this.TryGetOwnerAs(out MonthCalendar? owner) && owner.AccessibleRole == AccessibleRole.Default 535public override AccessibleRole Role 536=> 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)
99public 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)
377public 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)
143this.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 (3)
System\ComponentModel\Design\ByteViewerTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (2)
68var accessibleObject = CreateAccessibleObject(mock => mock.Setup(a => a.Role).Returns(AccessibleRole.PushButton)); 69accessibleObject.Role.Should().Be(AccessibleRole.PushButton);
System.Windows.Forms.Tests (884)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (32)
30Assert.Equal(AccessibleRole.None, accessibleObject.Role); 625Assert.Equal(AccessibleRole.None, accessibleObject.Role); 644Assert.Equal(AccessibleRole.Client, accessibleObject.Role); 665Assert.Equal(AccessibleRole.Graphic, accessibleObject.Role); 691Assert.Equal(AccessibleRole.None, accessibleObject.Role); 710Assert.Equal(AccessibleRole.None, accessibleObject.Role); 729Assert.Equal(AccessibleRole.Window, accessibleObject.Role); 748Assert.Equal(AccessibleRole.Client, accessibleObject.Role); 769Assert.Equal(AccessibleRole.None, accessibleObject.Role); 790Assert.Equal(AccessibleRole.Graphic, accessibleObject.Role); 811Assert.Equal(AccessibleRole.Window, accessibleObject.Role); 2136[InlineData(AccessibleRole.None, 0)] 2137[InlineData(AccessibleRole.None, unchecked((int)0x80020004))] 2138[InlineData(AccessibleRole.None, "abc")] 2139[InlineData(AccessibleRole.None, null)] 2140[InlineData(AccessibleRole.Default, 0)] 2141[InlineData(AccessibleRole.Default, unchecked((int)0x80020004))] 2142[InlineData(AccessibleRole.Default, "abc")] 2143[InlineData(AccessibleRole.Default, null)] 2144[InlineData(AccessibleRole.Sound, 0)] 2145[InlineData(AccessibleRole.Sound, unchecked((int)0x80020004))] 2146[InlineData(AccessibleRole.Sound, "abc")] 2147[InlineData(AccessibleRole.Sound, null)] 2148public void AccessibleObject_IAccessibleGet_accRole_InvokeDefaultSelf_ReturnsExpected(AccessibleRole result, object varChild) 2169Assert.Equal((int)AccessibleRole.Window, iAccessible.get_accRole((int)PInvoke.CHILDID_SELF)); 2174[InlineData(AccessibleRole.None, 2, 1, 0)] 2175[InlineData(AccessibleRole.Default, 2, 1, 0)] 2176[InlineData(AccessibleRole.Sound, 2, 1, 0)] 2177[InlineData(AccessibleRole.None, 3, 0, 1)] 2178[InlineData(AccessibleRole.Default, 3, 0, 1)] 2179[InlineData(AccessibleRole.Sound, 3, 0, 1)] 2180public void AccessibleObject_IAccessibleGet_accRole_InvokeDefaultChild_ReturnsExpected(AccessibleRole result, object varChild, int child1CallCount, int child2CallCount)
System\Windows\Forms\AccessibleObjects\Button.ButtonAccessibleObjectTests.cs (10)
32[InlineData(true, AccessibleRole.PushButton)] 33[InlineData(false, AccessibleRole.None)] 34public void ButtonAccessibleObject_AccessibleRole_Default_ReturnsExpected(bool createControl, AccessibleRole accessibleRole) 38AccessibleRole = AccessibleRole.Default 57AccessibleRole = AccessibleRole.Link 63Assert.Equal(AccessibleRole.Link, buttonAccessibleObject.Role); 103Array roles = Enum.GetValues(typeof(AccessibleRole)); 105foreach (AccessibleRole role in roles) 107if (role == AccessibleRole.Default) 118public void ButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (15)
69[InlineData(true, true, AccessibleRole.Client)] 70[InlineData(true, false, AccessibleRole.HelpBalloon)] 71[InlineData(false, true, AccessibleRole.None)] 72[InlineData(false, false, AccessibleRole.HelpBalloon)] 73public void ButtonBase_CreateAccessibilityInstance_InvokeWithRole_ReturnsExpected(bool createControl, bool defaultRole, AccessibleRole expectedAccessibleRole) 79control.AccessibleRole = AccessibleRole.HelpBalloon; 109Assert.Equal(AccessibleRole.Client, instance.Role); 125Assert.Equal(AccessibleRole.None, instance.Role); 189[InlineData(true, AccessibleRole.Client)] 190[InlineData(false, AccessibleRole.None)] 191public void ButtonBaseBoxAccessibleObject_ControlType_IsPane_IfAccessibleRoleIsDefault(bool createControl, AccessibleRole expectedRole) 211Array roles = Enum.GetValues(typeof(AccessibleRole)); 213foreach (AccessibleRole role in roles) 215if (role == AccessibleRole.Default) 226public void ButtonBaseAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\CategoryGridEntryAccessibleObjectTests.cs (2)
31Assert.Equal(AccessibleRole.ButtonDropDownGrid, accessibilityObject.Role); 163[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.ButtonDropDownGrid)]
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (7)
74Assert.Equal(AccessibleRole.CheckButton, checkBoxAccessibleObject.Role); 83AccessibleRole = AccessibleRole.PushButton 89Assert.Equal(AccessibleRole.PushButton, checkBoxAccessibleObject.Role); 283Array roles = Enum.GetValues(typeof(AccessibleRole)); 285foreach (AccessibleRole role in roles) 287if (role == AccessibleRole.Default) 298public void CheckBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (8)
62Array roles = Enum.GetValues(typeof(AccessibleRole)); 64foreach (AccessibleRole role in roles) 66if (role == AccessibleRole.Default) 77public void CheckedListBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 90[InlineData(true, AccessibleRole.List)] 91[InlineData(false, AccessibleRole.None)] 92public void CheckedListBoxAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 102AccessibleRole actual = checkedListBox.AccessibilityObject.Role;
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (1)
60Assert.Equal(AccessibleRole.CheckButton, checkedListBox.AccessibilityObject.GetChild(0).Role);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (7)
14[InlineData(true, AccessibleRole.ComboBox)] 15[InlineData(false, AccessibleRole.None)] 16public void ComboBoxAccessibleObject_Ctor_Default(bool createControl, AccessibleRole expectedAccessibleRole) 243Array roles = Enum.GetValues(typeof(AccessibleRole)); 245foreach (AccessibleRole role in roles) 247if (role == AccessibleRole.Default) 258public void ComboBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (74)
79Assert.Equal(AccessibleRole.None, accessibleObject.Role); 114Assert.Equal(AccessibleRole.Client, accessibleObject.Role); 765yield return new object[] { AccessibleRole.None }; 766yield return new object[] { AccessibleRole.TitleBar }; 767yield return new object[] { AccessibleRole.MenuBar }; 768yield return new object[] { AccessibleRole.ScrollBar }; 769yield return new object[] { AccessibleRole.Grip }; 770yield return new object[] { AccessibleRole.Sound }; 771yield return new object[] { AccessibleRole.Cursor }; 772yield return new object[] { AccessibleRole.Caret }; 773yield return new object[] { AccessibleRole.Alert }; 774yield return new object[] { AccessibleRole.Window }; 775yield return new object[] { AccessibleRole.Client }; 776yield return new object[] { AccessibleRole.MenuPopup }; 777yield return new object[] { AccessibleRole.MenuItem }; 778yield return new object[] { AccessibleRole.ToolTip }; 779yield return new object[] { AccessibleRole.Application }; 780yield return new object[] { AccessibleRole.Document }; 781yield return new object[] { AccessibleRole.Pane }; 782yield return new object[] { AccessibleRole.Chart }; 783yield return new object[] { AccessibleRole.Dialog }; 784yield return new object[] { AccessibleRole.Border }; 785yield return new object[] { AccessibleRole.Grouping }; 786yield return new object[] { AccessibleRole.Separator }; 787yield return new object[] { AccessibleRole.ToolBar }; 788yield return new object[] { AccessibleRole.StatusBar }; 789yield return new object[] { AccessibleRole.Table }; 790yield return new object[] { AccessibleRole.ColumnHeader }; 791yield return new object[] { AccessibleRole.RowHeader }; 792yield return new object[] { AccessibleRole.Column }; 793yield return new object[] { AccessibleRole.Row }; 794yield return new object[] { AccessibleRole.Cell }; 795yield return new object[] { AccessibleRole.Link }; 796yield return new object[] { AccessibleRole.HelpBalloon }; 797yield return new object[] { AccessibleRole.Character }; 798yield return new object[] { AccessibleRole.List }; 799yield return new object[] { AccessibleRole.ListItem }; 800yield return new object[] { AccessibleRole.Outline }; 801yield return new object[] { AccessibleRole.OutlineItem }; 802yield return new object[] { AccessibleRole.PageTab }; 803yield return new object[] { AccessibleRole.PropertyPage }; 804yield return new object[] { AccessibleRole.Indicator }; 805yield return new object[] { AccessibleRole.Graphic }; 806yield return new object[] { AccessibleRole.StaticText }; 807yield return new object[] { AccessibleRole.Text }; 808yield return new object[] { AccessibleRole.PushButton }; 809yield return new object[] { AccessibleRole.CheckButton }; 810yield return new object[] { AccessibleRole.RadioButton }; 811yield return new object[] { AccessibleRole.ComboBox }; 812yield return new object[] { AccessibleRole.DropList }; 813yield return new object[] { AccessibleRole.ProgressBar }; 814yield return new object[] { AccessibleRole.Dial }; 815yield return new object[] { AccessibleRole.HotkeyField }; 816yield return new object[] { AccessibleRole.Slider }; 817yield return new object[] { AccessibleRole.SpinButton }; 818yield return new object[] { AccessibleRole.Diagram }; 819yield return new object[] { AccessibleRole.Animation }; 820yield return new object[] { AccessibleRole.Equation }; 821yield return new object[] { AccessibleRole.ButtonDropDown }; 822yield return new object[] { AccessibleRole.ButtonMenu }; 823yield return new object[] { AccessibleRole.ButtonDropDownGrid }; 824yield return new object[] { AccessibleRole.WhiteSpace }; 825yield return new object[] { AccessibleRole.PageTabList }; 826yield return new object[] { AccessibleRole.Clock }; 827yield return new object[] { AccessibleRole.SplitButton }; 828yield return new object[] { AccessibleRole.IpAddress }; 829yield return new object[] { AccessibleRole.OutlineButton }; 834public void ControlAccessibleObject_Role_GetWithAccessibleRole_ReturnsExpected(AccessibleRole accessibleRole) 1265control.AccessibleRole = AccessibleRole.Link; 1268var accessibleObjectRole = controlAccessibleObject.Role; 1270Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 1403Array roles = Enum.GetValues(typeof(AccessibleRole)); 1405foreach (AccessibleRole role in roles) 1413public void ControlAccessibleObject_GetPropertyValue_ControlTypeProperty_ReturnsCorrectValue(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (7)
62[InlineData(true, AccessibleRole.Client)] 63[InlineData(false, AccessibleRole.None)] 64public void DataGridViewEditingPanelAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 83Array roles = Enum.GetValues(typeof(AccessibleRole)); 85foreach (AccessibleRole role in roles) 87if (role == AccessibleRole.Default) 98public void DataGridViewEditingPanelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (5)
24Assert.Equal(AccessibleRole.Table, accessibleObject.Role); 485Array roles = Enum.GetValues(typeof(AccessibleRole)); 487foreach (AccessibleRole role in roles) 489if (role == AccessibleRole.Default) 500public void DataGridViewAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DataGridViewButtonCellAccessibleObjectTests.cs (1)
17Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
23Assert.Equal(AccessibleRole.Cell, accessibleObject.Role); 103Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
17Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (1)
43Assert.Equal(AccessibleRole.ColumnHeader, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (7)
26[InlineData(true, AccessibleRole.ComboBox)] 27[InlineData(false, AccessibleRole.None)] 28public void DataGridViewComboBoxEditingControlAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 58Array roles = Enum.GetValues(typeof(AccessibleRole)); 60foreach (AccessibleRole role in roles) 62if (role == AccessibleRole.Default) 73public void DataGridViewComboBoxEditingControlAccessibleObjectTest_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DataGridViewImageCellAccessibleObjectTests.cs (1)
18Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewLinkCellAccessibleObjectTests.cs (1)
18Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (3)
20Assert.Equal(AccessibleRole.Row, accessibleObject.Role); 38Assert.Equal(AccessibleRole.Row, accessibleObject.Role); 318Assert.Equal(AccessibleRole.Grouping, selectedAccessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (1)
50Assert.Equal(AccessibleRole.RowHeader, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
21Assert.Equal(AccessibleRole.Grouping, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
21Assert.Equal(AccessibleRole.Grouping, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (7)
74[InlineData(true, AccessibleRole.Text)] 75[InlineData(false, AccessibleRole.None)] 76public void DataGridViewTextBoxEditingControlAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 94Array roles = Enum.GetValues(typeof(AccessibleRole)); 96foreach (AccessibleRole role in roles) 98if (role == AccessibleRole.Default) 109public void DataGridViewTextBoxEditingControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (7)
43AccessibleRole actual = dateTimePicker.AccessibilityObject.Role; 45Assert.Equal(AccessibleRole.ComboBox, actual); 64Array roles = Enum.GetValues(typeof(AccessibleRole)); 66foreach (AccessibleRole role in roles) 68if (role == AccessibleRole.Default) 79public void DateTimePickerAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 93public void DateTimePickerAccessibleObject_GetPropertyValue_LocalizedControlType_IsNull_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\DomainUpDownAccessibleObjectTests.cs (7)
40AccessibleRole actual = domainUpDown.AccessibilityObject.Role; 42Assert.Equal(AccessibleRole.SpinButton, actual); 70Array roles = Enum.GetValues(typeof(AccessibleRole)); 72foreach (AccessibleRole role in roles) 74if (role == AccessibleRole.Default) 85public void DomainUpDownAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 98[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.SpinButton)]
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (1)
27Assert.Equal(AccessibleRole.Alert, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (1)
23Assert.Equal(AccessibleRole.Grouping, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\FlowLayoutPanel.FlowLayoutPanelAccessibleObjectTests.cs (2)
42AccessibleRole actual = flowLayoutPanel.AccessibilityObject.Role; 44Assert.Equal(AccessibleRole.Client, actual);
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (8)
34Assert.Equal(AccessibleRole.Client, accessibleObject.Role); 77Array roles = Enum.GetValues(typeof(AccessibleRole)); 79foreach (AccessibleRole role in roles) 81if (role is AccessibleRole.Default or AccessibleRole.Client) 92public void FormAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 110AccessibleRole actual = form.AccessibilityObject.Role; 112Assert.Equal(AccessibleRole.Client, actual);
System\Windows\Forms\AccessibleObjects\GroupBoxAccessibleObjectTests.cs (8)
52groupBox.AccessibleRole = AccessibleRole.Link; 56Assert.Equal(AccessibleRole.Link, groupBoxAccessibleObject.Role); 65AccessibleRole actual = groupBox.AccessibilityObject.Role; 67Assert.Equal(AccessibleRole.Grouping, actual); 97Array roles = Enum.GetValues(typeof(AccessibleRole)); 99foreach (AccessibleRole role in roles) 101if (role == AccessibleRole.Default) 112public void GroupBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (7)
23[InlineData(true, AccessibleRole.ScrollBar)] 24[InlineData(false, AccessibleRole.None)] 25public void HScrollBarAccessibleObject_Ctor_Default(bool createControl, AccessibleRole accessibleRole) 85Array roles = Enum.GetValues(typeof(AccessibleRole)); 87foreach (AccessibleRole role in roles) 89if (role == AccessibleRole.Default) 100public void HScrollBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
122AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
133AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
123Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role); 134Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
122AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
101Assert.Equal(AccessibleRole.Indicator, accessibleObject.Role); 112Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (8)
53label.AccessibleRole = AccessibleRole.Link; 57Assert.Equal(AccessibleRole.Link, labelAccessibleObject.Role); 66AccessibleRole actual = label.AccessibilityObject.Role; 68Assert.Equal(AccessibleRole.StaticText, actual); 100Array roles = Enum.GetValues(typeof(AccessibleRole)); 102foreach (AccessibleRole role in roles) 104if (role == AccessibleRole.Default) 115public void LabelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (2)
150AccessibleRole actual = accessibleObject.Role; 152Assert.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)
177itemAccessibleObject.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)
35[InlineData(true, AccessibleRole.List)] 36[InlineData(false, AccessibleRole.None)] 37public void ListViewAccessibleObject_DefaultRole_ReturnsCorrectValue(bool createControl, AccessibleRole expectedAccessibleRole) 1113Array roles = Enum.GetValues(typeof(AccessibleRole)); 1115foreach (AccessibleRole role in roles) 1117if (role == AccessibleRole.Default) 1128public void ListViewAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (7)
48Assert.Equal(AccessibleRole.Grouping, accessibleObject.Role); 73Assert.Equal(AccessibleRole.Grouping, (AccessibleRole)(int)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId)); 106Assert.Equal(AccessibleRole.Grouping, (AccessibleRole)(int)defaultGroupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId)); 107Assert.Equal(AccessibleRole.Grouping, (AccessibleRole)(int)groupAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (1)
45Assert.Equal(AccessibleRole.ListItem, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (2)
28Assert.Equal(AccessibleRole.ListItem, item.AccessibilityObject.Role); 309Assert.Equal(AccessibleRole.CheckButton, itemAccessibleObject.Role);
System\Windows\Forms\AccessibleObjects\MaskedTextBox.MaskedTextBoxAccessibleObjectTests.cs (6)
43AccessibleRole actual = maskedTextBox.AccessibilityObject.Role; 45Assert.Equal(AccessibleRole.Text, actual); 51Array roles = Enum.GetValues(typeof(AccessibleRole)); 53foreach (AccessibleRole role in roles) 55if (role == AccessibleRole.Default) 66public void MaskedTextBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (9)
65AccessibleRole = AccessibleRole.Link 69var accessibleObjectRole = menuStripAccessibleObject.Role; 71Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 106AccessibleRole actual = menuStrip.AccessibilityObject.Role; 108Assert.Equal(AccessibleRole.MenuBar, actual); 114Array roles = Enum.GetValues(typeof(AccessibleRole)); 116foreach (AccessibleRole role in roles) 118if (role == AccessibleRole.Default) 129public void MenuStripAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
273Assert.Equal(AccessibleRole.Client, calendar.Role);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
177Assert.Equal(AccessibleRole.Table, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarButtonAccessibleObjectTests.cs (2)
95AccessibleRole actual = buttonAccessibleObject.Role; 97Assert.Equal(AccessibleRole.PushButton, actual);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (2)
93AccessibleRole actual = cellAccessibleObject.Role; 95Assert.Equal(AccessibleRole.ColumnHeader, actual);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarRowAccessibleObjectTests.cs (2)
91AccessibleRole actual = rowAccessibleObject.Role; 93Assert.Equal(AccessibleRole.Row, actual);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarWeekNumberCellAccessibleObjectTests.cs (2)
97AccessibleRole actual = cellAccessibleObject.Role; 99Assert.Equal(AccessibleRole.RowHeader, actual);
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (6)
44AccessibleRole actual = monthCalendar.AccessibilityObject.Role; 46Assert.Equal(AccessibleRole.Table, actual); 52Array roles = Enum.GetValues(typeof(AccessibleRole)); 54foreach (AccessibleRole role in roles) 56if (role == AccessibleRole.Default) 67public void MonthCalendarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarChildAccessibleObjectTests.cs (1)
37[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.None)]
System\Windows\Forms\AccessibleObjects\NumericUpDownAccessibleObjectTests.cs (7)
60AccessibleRole actual = numericUpDown.AccessibilityObject.Role; 62Assert.Equal(AccessibleRole.SpinButton, actual); 68Array roles = Enum.GetValues(typeof(AccessibleRole)); 70foreach (AccessibleRole role in roles) 72if (role == AccessibleRole.Default) 83public void NumericUpDownAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 96[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.SpinButton)]
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (4)
92Array roles = Enum.GetValues(typeof(AccessibleRole)); 94foreach (AccessibleRole role in roles) 96if (role == AccessibleRole.Default) 107public void PanelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (9)
65AccessibleRole = AccessibleRole.PushButton 71Assert.Equal(AccessibleRole.PushButton, pictureBoxAccessibleObject.Role); 76[InlineData(true, AccessibleRole.Client)] 77[InlineData(false, AccessibleRole.None)] 78public void PictureBoxAccessibleObject_DefaultRole_ReturnsExpected(bool createControl, AccessibleRole accessibleRole) 125Array roles = Enum.GetValues(typeof(AccessibleRole)); 127foreach (AccessibleRole role in roles) 129if (role == AccessibleRole.Default) 140public void PictureBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (6)
32Assert.Equal(AccessibleRole.ProgressBar, accessibilityObject.Role); 57Assert.Equal(AccessibleRole.None, accessibilityObject.Role); 126Array roles = Enum.GetValues(typeof(AccessibleRole)); 128foreach (AccessibleRole role in roles) 130if (role == AccessibleRole.Default) 141public void ProgressBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (7)
61[InlineData(true, AccessibleRole.Client)] 62[InlineData(false, AccessibleRole.None)] 63public void PropertyGridAccessibleObject_ControlType_IsPane_IfAccessibleRoleIsDefault(bool createControl, AccessibleRole expectedRole) 83Array roles = Enum.GetValues(typeof(AccessibleRole)); 85foreach (AccessibleRole role in roles) 87if (role == AccessibleRole.Default) 98public void PropertyGridAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\PropertyGridToolStrip.PropertyGridToolStripAccessibleObjectTests.cs (2)
46AccessibleRole actual = propertyGridToolStrip.AccessibilityObject.Role; 48Assert.Equal(AccessibleRole.ToolBar, actual);
System\Windows\Forms\AccessibleObjects\PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObjectTests.cs (1)
37Assert.Equal(AccessibleRole.RadioButton, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (2)
157AccessibleRole actual = propertyGrid.GridViewAccessibleObject.Role; 159Assert.Equal(AccessibleRole.Table, actual);
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (7)
126AccessibleRole = AccessibleRole.PushButton 132Assert.Equal(AccessibleRole.PushButton, radioButtonAccessibleObject.Role); 143Assert.Equal(AccessibleRole.RadioButton, radioButtonAccessibleObject.Role); 229Array roles = Enum.GetValues(typeof(AccessibleRole)); 231foreach (AccessibleRole role in roles) 233if (role == AccessibleRole.Default) 244public void RadioButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (7)
20[InlineData(true, AccessibleRole.ScrollBar)] 21[InlineData(false, AccessibleRole.None)] 22public void ScrollBarAccessibleObject_Ctor_Default(bool createControl, AccessibleRole accessibleRole) 79Array roles = Enum.GetValues(typeof(AccessibleRole)); 81foreach (AccessibleRole role in roles) 83if (role == AccessibleRole.Default) 94public void ScrollBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\SplitContainer.SplitContainerAccessibleObjectTests.cs (6)
42AccessibleRole actual = splitContainer.AccessibilityObject.Role; 44Assert.Equal(AccessibleRole.Client, actual); 50Array roles = Enum.GetValues(typeof(AccessibleRole)); 52foreach (AccessibleRole role in roles) 54if (role == AccessibleRole.Default) 65public void SplitContainerAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\Splitter.SplitterAccessibleObjectTests.cs (9)
65AccessibleRole = AccessibleRole.PushButton 71Assert.Equal(AccessibleRole.PushButton, splitterAccessibleObject.Role); 76[InlineData(true, AccessibleRole.Client)] 77[InlineData(false, AccessibleRole.None)] 78public void SplitterAccessibleObject_DefaultRole_ReturnsNone_IfControlIsNotCreated(bool createControl, AccessibleRole accessibleRole) 130Array roles = Enum.GetValues(typeof(AccessibleRole)); 132foreach (AccessibleRole role in roles) 134if (role == AccessibleRole.Default) 145public void SplitterAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (9)
45AccessibleRole = AccessibleRole.Link 49var accessibleObjectRole = statusStripAccessibleObject.Role; 51Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 86AccessibleRole actual = statusStrip.AccessibilityObject.Role; 88Assert.Equal(AccessibleRole.StatusBar, actual); 94Array roles = Enum.GetValues(typeof(AccessibleRole)); 96foreach (AccessibleRole role in roles) 98if (role == AccessibleRole.Default) 109public void StatusStripAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (6)
45AccessibleRole actual = tabControl.AccessibilityObject.Role; 47Assert.Equal(AccessibleRole.PageTabList, actual); 53Array roles = Enum.GetValues(typeof(AccessibleRole)); 55foreach (AccessibleRole role in roles) 57if (role == AccessibleRole.Default) 68public void TabControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (3)
100[InlineData(true, AccessibleRole.PageTab)] 101[InlineData(false, AccessibleRole.None)] 102public void TabAccessibleObject_Role_ReturnsNone_IfHandleIsNotCreated(bool createControl, AccessibleRole expectedAccessibleRole)
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (7)
39[InlineData(true, AccessibleRole.Client)] 40[InlineData(false, AccessibleRole.None)] 41public void TabPageAccessibilityObject_Role_ReturnsExpected(bool createControl, AccessibleRole expectedAccessibleRole) 56Array roles = Enum.GetValues(typeof(AccessibleRole)); 58foreach (AccessibleRole role in roles) 60if (role == AccessibleRole.Default) 71public void TabPageAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TextBoxAccessibleObjectTests.cs (6)
60AccessibleRole actual = textBox.AccessibilityObject.Role; 62Assert.Equal(AccessibleRole.Text, actual); 68Array roles = Enum.GetValues(typeof(AccessibleRole)); 70foreach (AccessibleRole role in roles) 72if (role == AccessibleRole.Default) 83public void TextBoxAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (7)
119[InlineData(true, AccessibleRole.Text, (int)UIA_CONTROLTYPE_ID.UIA_EditControlTypeId)] 120[InlineData(false, AccessibleRole.None, (int)UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId)] 121public void TextBoxBaseAccessibleObject_ControlType_IsExpected_IfAccessibleRoleIsDefault(bool createControl, AccessibleRole expectedRole, int expectedType) 141Array roles = Enum.GetValues(typeof(AccessibleRole)); 143foreach (AccessibleRole role in roles) 145if (role == AccessibleRole.Default) 156public void TextBoxBaseAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (8)
21Assert.Equal(AccessibleRole.ToolBar, accessibleObject.Role); 55AccessibleRole = AccessibleRole.Link 59var accessibleObjectRole = toolStripAccessibleObject.Role; 61Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 92Array roles = Enum.GetValues(typeof(AccessibleRole)); 94foreach (AccessibleRole role in roles) 96if (role == AccessibleRole.Default) 107public void ToolStripAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (11)
39AccessibleRole actual = toolStripButton.AccessibilityObject.Role; 41Assert.Equal(AccessibleRole.PushButton, actual); 52AccessibleRole actual = toolStripButton.AccessibilityObject.Role; 54Assert.Equal(AccessibleRole.CheckButton, actual); 65AccessibleRole actual = toolStripButton.AccessibilityObject.Role; 67Assert.Equal(AccessibleRole.CheckButton, actual); 72Array roles = Enum.GetValues(typeof(AccessibleRole)); 74foreach (AccessibleRole role in roles) 76if (role == AccessibleRole.Default) 87public void ToolStripButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 151AccessibleRole = AccessibleRole.CheckButton
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObjectTests.cs (5)
37Assert.Equal(AccessibleRole.ComboBox, accessibleObject.Role); 44Array roles = Enum.GetValues(typeof(AccessibleRole)); 46foreach (AccessibleRole role in roles) 48if (role == AccessibleRole.Default) 59public void ToolStripComboBoxControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (2)
45AccessibleRole testRole = AccessibleRole.Cell;
System\Windows\Forms\AccessibleObjects\ToolStripDropDown.ToolStripDropDownAccessibleObjectTests.cs (6)
43AccessibleRole actual = accessibleObject.Role; 45Assert.Equal(AccessibleRole.MenuPopup, actual); 51Array roles = Enum.GetValues(typeof(AccessibleRole)); 53foreach (AccessibleRole role in roles) 55if (role == AccessibleRole.Default) 66public void ToolStripDropDownAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (6)
40AccessibleRole actual = toolStripDropDownButton.AccessibilityObject.Role; 42Assert.Equal(AccessibleRole.MenuItem, actual); 47Array roles = Enum.GetValues(typeof(AccessibleRole)); 49foreach (AccessibleRole role in roles) 51if (role == AccessibleRole.Default) 62public void ToolStripDropDownButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (4)
32control.AccessibleRole = AccessibleRole.Default; 35Assert.Equal(AccessibleRole.MenuItem, accessibleObject.Role); 41AccessibleRole testRole = AccessibleRole.Cell;
System\Windows\Forms\AccessibleObjects\ToolStripGrip.ToolStripGripAccessibleObjectTests.cs (6)
39AccessibleRole actual = toolStripGrip.AccessibilityObject.Role; 41Assert.Equal(AccessibleRole.Grip, actual); 46Array roles = Enum.GetValues(typeof(AccessibleRole)); 48foreach (AccessibleRole role in roles) 50if (role == AccessibleRole.Default) 61public void ToolStripGripAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (9)
22AccessibleRole = AccessibleRole.MenuBar 34Assert.Equal(AccessibleRole.MenuBar, accessibleObject.Role); 56item.AccessibleRole = AccessibleRole.Link; 59var accessibleObjectRole = toolStripItemAccessibleObject.Role; 61Assert.Equal(AccessibleRole.Link, accessibleObjectRole); 145Array roles = Enum.GetValues(typeof(AccessibleRole)); 147foreach (AccessibleRole role in roles) 149if (role == AccessibleRole.Default) 160public void ToolStripItemAccessibleObject_GetPropertyValue_ControlTypeProperty_ReturnsCorrectValue(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripLabel.ToolStripLabelAccessibleObjectTests.cs (8)
38[InlineData(true, AccessibleRole.Link)] 39[InlineData(false, AccessibleRole.StaticText)] 40public void ToolStripLabelAccessibleObject_Role_IsExpected_ByDefault(bool isLink, AccessibleRole expectedRole) 46AccessibleRole actual = toolStripLabel.AccessibilityObject.Role; 53Array roles = Enum.GetValues(typeof(AccessibleRole)); 55foreach (AccessibleRole role in roles) 57if (role == AccessibleRole.Default) 68public void ToolStripLabelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (6)
86AccessibleRole actual = toolStripMenuItem.AccessibilityObject.Role; 88Assert.Equal(AccessibleRole.MenuItem, actual); 93Array roles = Enum.GetValues(typeof(AccessibleRole)); 95foreach (AccessibleRole role in roles) 97if (role == AccessibleRole.Default) 108public void ToolStripMenuItemAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripNumericUpDown.ToolStripNumericUpDownAccessibleObjectTests.cs (8)
36[InlineData(true, AccessibleRole.Client)] 37[InlineData(false, AccessibleRole.None)] 38public void ToolStripNumericUpDownAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 49AccessibleRole actual = toolStripNumericUpDown.AccessibilityObject.Role; 57Array roles = Enum.GetValues(typeof(AccessibleRole)); 59foreach (AccessibleRole role in roles) 61if (role == AccessibleRole.Default) 72public void ToolStripNumericUpDownAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (5)
47Assert.Equal(AccessibleRole.MenuPopup, actual); 53Array roles = Enum.GetValues(typeof(AccessibleRole)); 55foreach (AccessibleRole role in roles) 57if (role == AccessibleRole.Default) 68public void ToolStripOverflowAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (6)
44AccessibleRole actual = toolStripOverflowButton.AccessibilityObject.Role; 46Assert.Equal(AccessibleRole.MenuItem, actual); 52Array roles = Enum.GetValues(typeof(AccessibleRole)); 54foreach (AccessibleRole role in roles) 56if (role == AccessibleRole.Default) 67public void ToolStripOverflowButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (7)
36[InlineData(true, AccessibleRole.ProgressBar)] 37[InlineData(false, AccessibleRole.None)] 38public void ToolStripProgressBarControlAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 56Array roles = Enum.GetValues(typeof(AccessibleRole)); 58foreach (AccessibleRole role in roles) 60if (role == AccessibleRole.Default) 71public void ToolStripProgressBarControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripSeparator.ToolStripSeparatorAccessibleObjectTests.cs (6)
39AccessibleRole actual = toolStripSeparator.AccessibilityObject.Role; 41Assert.Equal(AccessibleRole.Separator, actual); 46Array roles = Enum.GetValues(typeof(AccessibleRole)); 48foreach (AccessibleRole role in roles) 50if (role == AccessibleRole.Default) 61public void ToolStripSeparatorAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonAccessibleObjectTests.cs (6)
39AccessibleRole actual = toolStripSplitButton.AccessibilityObject.Role; 41Assert.Equal(AccessibleRole.MenuItem, actual); 46Array roles = Enum.GetValues(typeof(AccessibleRole)); 48foreach (AccessibleRole role in roles) 50if (role == AccessibleRole.Default) 61public void ToolStripSplitButtonAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripStatusLabel.ToolStripStatusLabelAccessibleObjectTests.cs (8)
37[InlineData(true, AccessibleRole.Link)] 38[InlineData(false, AccessibleRole.StaticText)] 39public void ToolStripStatusLabelAccessibleObject_Role_IsExpected_ByDefault(bool isLink, AccessibleRole expectedRole) 45AccessibleRole actual = toolStripStatusLabel.AccessibilityObject.Role; 52Array roles = Enum.GetValues(typeof(AccessibleRole)); 54foreach (AccessibleRole role in roles) 56if (role == AccessibleRole.Default) 67public void ToolStripStatusLabelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxAccessibleObjectTests.cs (3)
43AccessibleRole = AccessibleRole.Link 47var accessibleObjectRole = toolStripTextBoxAccessibleObject.Role; 49Assert.Equal(AccessibleRole.Link, accessibleObjectRole);
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxControlAccessibleObjectTests.cs (7)
92[InlineData(true, AccessibleRole.Text)] 93[InlineData(false, AccessibleRole.None)] 94public void ToolStripTextBoxControlAccessibleObject_Default_Role_IsExpected(bool createControl, AccessibleRole expectedRole) 113Array roles = Enum.GetValues(typeof(AccessibleRole)); 115foreach (AccessibleRole role in roles) 117if (role == AccessibleRole.Default) 128public void ToolStripTextBoxControlAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (7)
35Assert.Equal(AccessibleRole.Slider, accessibilityObject.Role); 58Assert.Equal(AccessibleRole.Slider, accessibilityObject.Role); 278Assert.Equal(AccessibleRole.Slider, trackBar.AccessibilityObject.Role); 284Array roles = Enum.GetValues(typeof(AccessibleRole)); 286foreach (AccessibleRole role in roles) 288if (role == AccessibleRole.Default) 299public void TrackBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarChildAccessibleObjectTests.cs (1)
117accessibleObject.Role.Should().Be(AccessibleRole.None);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (3)
142AccessibleRole accessibleRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (3)
142AccessibleRole accessibleRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (3)
75AccessibleRole accessibleRole = createControl ? AccessibleRole.Indicator : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
340Assert.Equal(AccessibleRole.OutlineItem, node.AccessibilityObject.Role); 350Assert.Equal(AccessibleRole.CheckButton, node.AccessibilityObject.Role);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (2)
49AccessibleRole actual = control.AccessibilityObject.Role; 51Assert.Equal(AccessibleRole.Outline, actual);
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObjectTests.cs (1)
33[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.PushButton)]
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObjectTests.cs (7)
48AccessibleRole actual = upDownButtons.AccessibilityObject.Role; 50Assert.Equal(AccessibleRole.SpinButton, actual); 56Array roles = Enum.GetValues(typeof(AccessibleRole)); 58foreach (AccessibleRole role in roles) 60if (role == AccessibleRole.Default) 71public void UpDownButtonsAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 150[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.SpinButton)]
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (7)
147[InlineData(true, AccessibleRole.Text, (int)UIA_CONTROLTYPE_ID.UIA_EditControlTypeId)] 148[InlineData(false, AccessibleRole.None, (int)UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId)] 149public void UpDownEditAccessibleObject_ControlType_IsExpected_IfAccessibleRoleIsDefault(bool createControl, AccessibleRole expectedRole, int expectedType) 170Array roles = Enum.GetValues(typeof(AccessibleRole)); 172foreach (AccessibleRole role in roles) 174if (role == AccessibleRole.Default) 185public void UpDownEditAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
122AccessibleRole 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)
123Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role); 134Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
122AccessibleRole expectedRole = createControl ? AccessibleRole.PushButton : AccessibleRole.None;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
101Assert.Equal(AccessibleRole.Indicator, accessibleObject.Role); 112Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (7)
22[InlineData(true, AccessibleRole.ScrollBar)] 23[InlineData(false, AccessibleRole.None)] 24public void VScrollBarAccessibleObject_Ctor_Default(bool createControl, AccessibleRole accessibleRole) 84Array roles = Enum.GetValues(typeof(AccessibleRole)); 86foreach (AccessibleRole role in roles) 88if (role == AccessibleRole.Default) 99public void VScrollBarAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\AccessibleRoleControlTypeMapTests.cs (72)
14Array roles = Enum.GetValues(typeof(AccessibleRole)); 16foreach (AccessibleRole role in roles) 24public void AccessibleRoleControlTypeMap_Contains_AllRoles(AccessibleRole role) 36AccessibleRole incorrectRole = (AccessibleRole)(-999); 43yield return new object[] { AccessibleRole.Alert, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 44yield return new object[] { AccessibleRole.Animation, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 45yield return new object[] { AccessibleRole.Application, UIA_CONTROLTYPE_ID.UIA_WindowControlTypeId }; 46yield return new object[] { AccessibleRole.Border, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 47yield return new object[] { AccessibleRole.ButtonDropDown, UIA_CONTROLTYPE_ID.UIA_SplitButtonControlTypeId }; 48yield return new object[] { AccessibleRole.ButtonDropDownGrid, UIA_CONTROLTYPE_ID.UIA_ButtonControlTypeId }; 49yield return new object[] { AccessibleRole.ButtonMenu, UIA_CONTROLTYPE_ID.UIA_MenuItemControlTypeId }; 50yield return new object[] { AccessibleRole.Caret, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 51yield return new object[] { AccessibleRole.Cell, UIA_CONTROLTYPE_ID.UIA_DataItemControlTypeId }; 52yield return new object[] { AccessibleRole.Character, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 53yield return new object[] { AccessibleRole.Chart, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 54yield return new object[] { AccessibleRole.CheckButton, UIA_CONTROLTYPE_ID.UIA_CheckBoxControlTypeId }; 55yield return new object[] { AccessibleRole.Client, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 56yield return new object[] { AccessibleRole.Clock, UIA_CONTROLTYPE_ID.UIA_ButtonControlTypeId }; 57yield return new object[] { AccessibleRole.Column, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 58yield return new object[] { AccessibleRole.ColumnHeader, UIA_CONTROLTYPE_ID.UIA_HeaderControlTypeId }; 59yield return new object[] { AccessibleRole.ComboBox, UIA_CONTROLTYPE_ID.UIA_ComboBoxControlTypeId }; 60yield return new object[] { AccessibleRole.Cursor, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 61yield return new object[] { AccessibleRole.Default, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 62yield return new object[] { AccessibleRole.Diagram, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 63yield return new object[] { AccessibleRole.Dial, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 64yield return new object[] { AccessibleRole.Dialog, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 65yield return new object[] { AccessibleRole.Document, UIA_CONTROLTYPE_ID.UIA_DocumentControlTypeId }; 66yield return new object[] { AccessibleRole.DropList, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 67yield return new object[] { AccessibleRole.Equation, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 68yield return new object[] { AccessibleRole.Graphic, UIA_CONTROLTYPE_ID.UIA_ImageControlTypeId }; 69yield return new object[] { AccessibleRole.Grip, UIA_CONTROLTYPE_ID.UIA_ThumbControlTypeId }; 70yield return new object[] { AccessibleRole.Grouping, UIA_CONTROLTYPE_ID.UIA_GroupControlTypeId }; 71yield return new object[] { AccessibleRole.HelpBalloon, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 72yield return new object[] { AccessibleRole.HotkeyField, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 73yield return new object[] { AccessibleRole.Indicator, UIA_CONTROLTYPE_ID.UIA_ThumbControlTypeId }; 74yield return new object[] { AccessibleRole.IpAddress, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 75yield return new object[] { AccessibleRole.Link, UIA_CONTROLTYPE_ID.UIA_HyperlinkControlTypeId }; 76yield return new object[] { AccessibleRole.List, UIA_CONTROLTYPE_ID.UIA_ListControlTypeId }; 77yield return new object[] { AccessibleRole.ListItem, UIA_CONTROLTYPE_ID.UIA_ListItemControlTypeId }; 78yield return new object[] { AccessibleRole.MenuBar, UIA_CONTROLTYPE_ID.UIA_MenuBarControlTypeId }; 79yield return new object[] { AccessibleRole.MenuItem, UIA_CONTROLTYPE_ID.UIA_MenuItemControlTypeId }; 80yield return new object[] { AccessibleRole.MenuPopup, UIA_CONTROLTYPE_ID.UIA_MenuControlTypeId }; 81yield return new object[] { AccessibleRole.None, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 82yield return new object[] { AccessibleRole.Outline, UIA_CONTROLTYPE_ID.UIA_TreeControlTypeId }; 83yield return new object[] { AccessibleRole.OutlineButton, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 84yield return new object[] { AccessibleRole.OutlineItem, UIA_CONTROLTYPE_ID.UIA_TreeItemControlTypeId }; 85yield return new object[] { AccessibleRole.PageTab, UIA_CONTROLTYPE_ID.UIA_TabItemControlTypeId }; 86yield return new object[] { AccessibleRole.PageTabList, UIA_CONTROLTYPE_ID.UIA_TabControlTypeId }; 87yield return new object[] { AccessibleRole.Pane, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 88yield return new object[] { AccessibleRole.ProgressBar, UIA_CONTROLTYPE_ID.UIA_ProgressBarControlTypeId }; 89yield return new object[] { AccessibleRole.PropertyPage, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 90yield return new object[] { AccessibleRole.PushButton, UIA_CONTROLTYPE_ID.UIA_ButtonControlTypeId }; 91yield return new object[] { AccessibleRole.RadioButton, UIA_CONTROLTYPE_ID.UIA_RadioButtonControlTypeId }; 92yield return new object[] { AccessibleRole.Row, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 93yield return new object[] { AccessibleRole.RowHeader, UIA_CONTROLTYPE_ID.UIA_HeaderControlTypeId }; 94yield return new object[] { AccessibleRole.ScrollBar, UIA_CONTROLTYPE_ID.UIA_ScrollBarControlTypeId }; 95yield return new object[] { AccessibleRole.Separator, UIA_CONTROLTYPE_ID.UIA_SeparatorControlTypeId }; 96yield return new object[] { AccessibleRole.Slider, UIA_CONTROLTYPE_ID.UIA_SliderControlTypeId }; 97yield return new object[] { AccessibleRole.Sound, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 98yield return new object[] { AccessibleRole.SpinButton, UIA_CONTROLTYPE_ID.UIA_SpinnerControlTypeId }; 99yield return new object[] { AccessibleRole.SplitButton, UIA_CONTROLTYPE_ID.UIA_SplitButtonControlTypeId }; 100yield return new object[] { AccessibleRole.StaticText, UIA_CONTROLTYPE_ID.UIA_TextControlTypeId }; 101yield return new object[] { AccessibleRole.StatusBar, UIA_CONTROLTYPE_ID.UIA_StatusBarControlTypeId }; 102yield return new object[] { AccessibleRole.Table, UIA_CONTROLTYPE_ID.UIA_TableControlTypeId }; 103yield return new object[] { AccessibleRole.Text, UIA_CONTROLTYPE_ID.UIA_EditControlTypeId }; 104yield return new object[] { AccessibleRole.TitleBar, UIA_CONTROLTYPE_ID.UIA_TitleBarControlTypeId }; 105yield return new object[] { AccessibleRole.ToolBar, UIA_CONTROLTYPE_ID.UIA_ToolBarControlTypeId }; 106yield return new object[] { AccessibleRole.ToolTip, UIA_CONTROLTYPE_ID.UIA_ToolTipControlTypeId }; 107yield return new object[] { AccessibleRole.WhiteSpace, UIA_CONTROLTYPE_ID.UIA_PaneControlTypeId }; 108yield return new object[] { AccessibleRole.Window, UIA_CONTROLTYPE_ID.UIA_WindowControlTypeId }; 113public void AccessibleRoleControlTypeMap_GetControlType_ReturnsExpectedValue(AccessibleRole role, int expectedType)
System\Windows\Forms\AxHostTests.cs (2)
35Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 129Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ButtonBaseTests.cs (1)
26Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ButtonTests.cs (16)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 1011Assert.Equal(AccessibleRole.None, instance.Role); 1032Assert.Equal(AccessibleRole.PushButton, instance.Role); 1039[InlineData(true, FlatStyle.Flat, AccessibleStates.Pressed | AccessibleStates.Focusable, AccessibleRole.PushButton)] 1040[InlineData(true, FlatStyle.Popup, AccessibleStates.Pressed | AccessibleStates.Focusable, AccessibleRole.PushButton)] 1041[InlineData(true, FlatStyle.Standard, AccessibleStates.Pressed | AccessibleStates.Focusable, AccessibleRole.PushButton)] 1042[InlineData(true, FlatStyle.System, AccessibleStates.Focusable, AccessibleRole.PushButton)] 1043[InlineData(false, FlatStyle.Flat, AccessibleStates.None, AccessibleRole.None)] 1044[InlineData(false, FlatStyle.Popup, AccessibleStates.None, AccessibleRole.None)] 1045[InlineData(false, FlatStyle.Standard, AccessibleStates.None, AccessibleRole.None)] 1046[InlineData(false, FlatStyle.System, AccessibleStates.None, AccessibleRole.None)] 1047public void Button_CreateAccessibilityInstance_InvokeMouseDown_ReturnsExpected(bool createControl, FlatStyle flatStyle, AccessibleStates expectedState, AccessibleRole expectedRole) 1079AccessibleRole = AccessibleRole.HelpBalloon 1088Assert.Equal(AccessibleRole.HelpBalloon, instance.Role); 1101AccessibleRole = AccessibleRole.HelpBalloon 1109Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\CheckBoxTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ComboBoxTests.cs (1)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ContainerControlTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ControlTests.cs (5)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 111Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 207Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 303Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 399Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ControlTests.Methods.cs (3)
395[InlineData(true, AccessibleRole.Client)] 396[InlineData(false, AccessibleRole.None)] 397public void Control_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createHandle, AccessibleRole expectedAccessibleRole)
System\Windows\Forms\ControlTests.Properties.cs (4)
157[EnumData<AccessibleRole>] 158public void Control_AccessibleRole_Set_GetReturnsExpected(AccessibleRole value) 174[InvalidEnumData<AccessibleRole>] 175public void Control_AccessibleRole_SetInvalidValue_ThrowsInvalidEnumArgumentException(AccessibleRole value)
System\Windows\Forms\DataGridViewCellTests.cs (1)
3452Assert.Equal(AccessibleRole.Cell, instance.Role);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (6)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 975[InlineData(true, AccessibleRole.Text)] 976[InlineData(false, AccessibleRole.None)] 977public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createControl, AccessibleRole expectedAccessibleRole) 1000AccessibleRole = AccessibleRole.HelpBalloon 1005Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\DateTimePickerTests.cs (1)
29Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\DomainUpDownTests.cs (3)
942instance.Role.Should().Be(AccessibleRole.SpinButton); 950_sub.AccessibleRole = AccessibleRole.HelpBalloon; 955instance.Role.Should().Be(AccessibleRole.HelpBalloon);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\FormTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\GroupBoxTests.cs (4)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 1387Assert.Equal(AccessibleRole.Grouping, instance.Role); 1397AccessibleRole = AccessibleRole.HelpBalloon 1402Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\HScrollBarTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\LabelTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ListBoxTests.cs (4)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 4751[InlineData(true, AccessibleRole.List)] 4752[InlineData(false, AccessibleRole.None)] 4753public void ListBox_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createControl, AccessibleRole accessibleRole)
System\Windows\Forms\ListControlTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ListViewTests.cs (1)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\MdiClientTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\MdiControlStripTests.cs (1)
24Assert.Equal(AccessibleRole.Default, mdiControlStrip.AccessibleRole);
System\Windows\Forms\MenuStripTests.cs (4)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 418Assert.Equal(AccessibleRole.MenuBar, instance.Role); 428AccessibleRole = AccessibleRole.HelpBalloon 433Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\MonthCalendarTests.cs (3)
26Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 2297Assert.Equal(AccessibleRole.Table, instance.Role); 4453cellAccessibleObject.Role.Should().Be(AccessibleRole.Cell);
System\Windows\Forms\PanelTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\PictureBoxTests.cs (1)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibilityObjectTests.cs (1)
23Assert.Equal(AccessibleRole.None, accessibleObject.Role);
System\Windows\Forms\ProgressBarTests.cs (4)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 1761[InlineData(true, AccessibleRole.ProgressBar)] 1762[InlineData(false, AccessibleRole.None)] 1763public 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)
43[InlineData(true, AccessibleRole.PushButton)] 44[InlineData(false, AccessibleRole.None)] 45public void DetailsButtonAccessibleObject_Role_IsPushButton_ByDefault(bool createControl, AccessibleRole expectedRole) 57AccessibleRole actual = detailsButton.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DropDownButton.DropDownButtonAccessibleObjectTests.cs (3)
38[InlineData((int)UIA_PROPERTY_ID.UIA_LegacyIAccessibleRolePropertyId, (int)AccessibleRole.PushButton)] 63AccessibleRole actual = dropDownButton.AccessibilityObject.Role; 65Assert.Equal(AccessibleRole.PushButton, actual);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\HelpPane.HelpPaneAccessibleObjectTests.cs (4)
40[InlineData(true, AccessibleRole.Client)] 41[InlineData(false, AccessibleRole.None)] 42public void HelpPaneAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 53AccessibleRole actual = helpPane.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewListBoxAccessibleObjectTests.cs (4)
44[InlineData(true, AccessibleRole.List)] 45[InlineData(false, AccessibleRole.None)] 46public void GridViewListBoxAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 58AccessibleRole actual = gridViewListBox.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (4)
170[InlineData(true, AccessibleRole.Text)] 171[InlineData(false, AccessibleRole.None)] 172public void GridViewTextBoxAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole) 184AccessibleRole actual = gridView.EditAccessibleObject.Role;
System\Windows\Forms\PropertyGridTests.cs (3)
30Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 3883Assert.Equal(AccessibleRole.RadioButton, categoryButton.AccessibleRole); 3884Assert.Equal(AccessibleRole.RadioButton, alphaButton.AccessibleRole);
System\Windows\Forms\RadioButtonTests.cs (10)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 415Assert.Equal(AccessibleRole.RadioButton, instance.Role); 436Assert.Equal(AccessibleRole.RadioButton, instance.Role); 448AccessibleRole = AccessibleRole.HelpBalloon 459Assert.Equal(AccessibleRole.HelpBalloon, instance.Role); 471AccessibleRole = AccessibleRole.HelpBalloon 481Assert.Equal(AccessibleRole.HelpBalloon, instance.Role); 523Assert.Equal(AccessibleRole.RadioButton, instance.Role); 546Assert.Equal(AccessibleRole.RadioButton, instance.Role); 568Assert.Equal(AccessibleRole.RadioButton, instance.Role);
System\Windows\Forms\RichTextBoxTests.cs (1)
34Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ScrollableControlTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ScrollBarTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\SplitterPanelTests.cs (1)
29Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\SplitterTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\StatusStripTests.cs (2)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 869Assert.Equal(AccessibleRole.StatusBar, instance.Role);
System\Windows\Forms\TabControlTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\TableLayoutPanel.TableLayoutPanelAccessibleObectTests.cs (6)
42AccessibleRole actual = tableLayoutPanel.AccessibilityObject.Role; 44Assert.Equal(AccessibleRole.Client, actual); 50Array roles = Enum.GetValues(typeof(AccessibleRole)); 52foreach (AccessibleRole role in roles) 54if (role == AccessibleRole.Default) 65public void TableLayoutPanelAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
System\Windows\Forms\TableLayoutPanelTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\TabPageTests.cs (2)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 136Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (7)
52AccessibleRole actual = accessibleObject.Role; 54Assert.Equal(AccessibleRole.PushButton, actual); 60Array roles = Enum.GetValues(typeof(AccessibleRole)); 62foreach (AccessibleRole role in roles) 64if (role == AccessibleRole.Default) 75public void ToolStripAccessibleObjectWrapperForItemsOnOverflow_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role) 84AccessibleRole actual = accessibleObject.Role;
System\Windows\Forms\ToolStripButtonTests.cs (12)
25Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 106Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 193Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 283Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 372Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 470Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 1006Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role); 1017AccessibleRole = AccessibleRole.HelpBalloon 1020Assert.Equal(AccessibleRole.HelpBalloon, accessibleObject.Role); 1034Assert.Equal(AccessibleRole.CheckButton, accessibleObject.Role); 1053Assert.Equal(AccessibleRole.CheckButton, accessibleObject.Role); 1072Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStripControlHostTests.cs (13)
28AccessibleRole = AccessibleRole.HelpBalloon, 55Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 226[EnumData<AccessibleRole>] 227public void ToolStripControlHost_AccessibleRole_Set_GetReturnsExpected(AccessibleRole value) 246[InvalidEnumData<AccessibleRole>] 247public void ToolStripControlHost_AccessibleRole_SetInvalid_ThrowsInvalidEnumArgumentException(AccessibleRole value) 2508[InlineData(true, AccessibleRole.Client)] 2509[InlineData(false, AccessibleRole.None)] 2510public void ToolStripControlHost_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createControl, AccessibleRole expectedAccessibleRole) 2536AccessibleRole = AccessibleRole.HelpBalloon 2538c.AccessibleRole = AccessibleRole.Alert; 2541Assert.Equal(AccessibleRole.Alert, accessibleObject.Role); 2556Assert.Equal(AccessibleRole.Default, accessibleObject.Role);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
24Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 114Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 213Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 313Assert.Equal(AccessibleRole.Default, item.AccessibleRole);
System\Windows\Forms\ToolStripDropDownTests.cs (4)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 2930Assert.Equal(AccessibleRole.MenuPopup, instance.Role); 2940AccessibleRole = AccessibleRole.HelpBalloon 2945Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\ToolStripItemTests.cs (8)
27Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 113Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 208Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 356[EnumData<AccessibleRole>] 357public void ToolStripItem_AccessibleRole_Set_GetReturnsExpected(AccessibleRole value) 371[InvalidEnumData<AccessibleRole>] 372public void ToolStripItem_AccessibleRole_SetInvalid_ThrowsInvalidEnumArgumentException(AccessibleRole value) 9840Assert.Equal(AccessibleRole.PushButton, accessibleObject.Role);
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
21Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 268AccessibleRole = AccessibleRole.MenuItem,
System\Windows\Forms\ToolStripPanelTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStripSeparatorTests.cs (4)
25Assert.Equal(AccessibleRole.Default, item.AccessibleRole); 727Assert.Equal(AccessibleRole.Separator, accessibleObject.Role); 737AccessibleRole = AccessibleRole.HelpBalloon 740Assert.Equal(AccessibleRole.HelpBalloon, accessibleObject.Role);
System\Windows\Forms\ToolStripTests.cs (5)
26Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 184Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 4213Assert.Equal(AccessibleRole.ToolBar, instance.Role); 4223AccessibleRole = AccessibleRole.HelpBalloon 4228Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
System\Windows\Forms\TreeViewTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\UserControlTests.cs (1)
26Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\VScrollBarTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
TextBoxTests.cs (6)
26Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 451[InlineData(true, AccessibleRole.Text)] 452[InlineData(false, AccessibleRole.None)] 453public void TextBox_CreateAccessibilityInstance_Invoke_ReturnsExpected(bool createControl, AccessibleRole expectedAccessibleRole) 477AccessibleRole = AccessibleRole.HelpBalloon 482Assert.Equal(AccessibleRole.HelpBalloon, instance.Role);
TrackBarTests.cs (1)
25Assert.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;