93 writes to AccessibleRole
System.Windows.Forms (3)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
183_toolStrip.AccessibleRole = AccessibleRole.ToolBar;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
615ControlInternal.AccessibleRole = AccessibleRole;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
342set => base.AccessibleRole = value;
System.Windows.Forms.Design (11)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
242EditControl.AccessibleRole = _button.Ellipsis 248_button.AccessibleRole = (_button.Ellipsis ? AccessibleRole.PushButton : AccessibleRole.ButtonDropDown);
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\DesignBindingPicker.cs (2)
177AccessibleRole = AccessibleRole.Graphic 302AccessibleRole = AccessibleRole.Graphic
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
1501_miniToolStrip.AccessibleRole = AccessibleRole.ComboBox; 1507_miniToolStrip.AccessibleRole = AccessibleRole.ButtonDropDown; 1641AccessibleRole = AccessibleRole.ComboBox;
System.Windows.Forms.Tests (77)
System\Windows\Forms\AccessibleObjects\Button.ButtonAccessibleObjectTests.cs (3)
36AccessibleRole = AccessibleRole.Default 55AccessibleRole = AccessibleRole.Link 119button.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (2)
77control.AccessibleRole = AccessibleRole.HelpBalloon; 227buttonBase.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (2)
81AccessibleRole = AccessibleRole.PushButton 299checkBox.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (1)
78checkedListBox.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (1)
259comboBox.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (3)
825AccessibleRole = accessibleRole 1250control.AccessibleRole = AccessibleRole.Link; 1396control.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (1)
100editingPanel.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
501dataGridView.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (1)
74control.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
110textCellControl.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (2)
80dateTimePicker.AccessibleRole = role; 94dateTimePicker.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\DomainUpDownAccessibleObjectTests.cs (1)
86domainUpDown.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
93form.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\GroupBoxAccessibleObjectTests.cs (2)
50groupBox.AccessibleRole = AccessibleRole.Link; 113groupBox.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (1)
101scrollBar.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (2)
51label.AccessibleRole = AccessibleRole.Link; 116label.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\LinkLabel.LinkLabelAccessibleObjectTests.cs (1)
54linkLabel.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
78listBox.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1129listView.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\MaskedTextBox.MaskedTextBoxAccessibleObjectTests.cs (1)
67maskedTextBox.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (2)
63AccessibleRole = AccessibleRole.Link 130menuStrip.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (1)
68monthCalendar.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\NumericUpDownAccessibleObjectTests.cs (1)
84numericUpDown.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
108panel.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (2)
63AccessibleRole = AccessibleRole.PushButton 141pictureBox.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (1)
142progressBar.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (1)
100propertyGrid.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (2)
124AccessibleRole = AccessibleRole.PushButton 245radioButton.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
95scrollBar.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\SplitContainer.SplitContainerAccessibleObjectTests.cs (1)
66splitContainer.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\Splitter.SplitterAccessibleObjectTests.cs (2)
63AccessibleRole = AccessibleRole.PushButton 146splitter.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (2)
43AccessibleRole = AccessibleRole.Link 110statusStrip.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
69tabControl.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
72tabPage.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\TextBoxAccessibleObjectTests.cs (1)
84textBox.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
157textBoxBase.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (2)
53AccessibleRole = AccessibleRole.Link 108toolStrip.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (1)
48control.AccessibleRole = testRole;
System\Windows\Forms\AccessibleObjects\ToolStripDropDown.ToolStripDropDownAccessibleObjectTests.cs (1)
67toolStripDropDown.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (1)
70toolStripOverflow.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (1)
72toolStripProgressBarControl.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (1)
300trackBar.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObjectTests.cs (1)
73upDownButtons.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (1)
187upDownEdit.AccessibleRole = role;
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
100scrollBar.AccessibleRole = role;
System\Windows\Forms\ButtonTests.cs (2)
1077AccessibleRole = AccessibleRole.HelpBalloon 1099AccessibleRole = AccessibleRole.HelpBalloon
System\Windows\Forms\ControlTests.Properties.cs (3)
160AccessibleRole = value 166control.AccessibleRole = value; 176Assert.Throws<InvalidEnumArgumentException>("value", () => control.AccessibleRole = value);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
998AccessibleRole = AccessibleRole.HelpBalloon
System\Windows\Forms\DomainUpDownTests.cs (1)
948_sub.AccessibleRole = AccessibleRole.HelpBalloon;
System\Windows\Forms\GroupBoxTests.cs (1)
1395AccessibleRole = AccessibleRole.HelpBalloon
System\Windows\Forms\MenuStripTests.cs (1)
426AccessibleRole = AccessibleRole.HelpBalloon
System\Windows\Forms\RadioButtonTests.cs (2)
446AccessibleRole = AccessibleRole.HelpBalloon 469AccessibleRole = AccessibleRole.HelpBalloon
System\Windows\Forms\TableLayoutPanel.TableLayoutPanelAccessibleObectTests.cs (1)
66tableLayoutPanel.AccessibleRole = role;
System\Windows\Forms\ToolStripControlHostTests.cs (2)
26AccessibleRole = AccessibleRole.HelpBalloon, 2536c.AccessibleRole = AccessibleRole.Alert;
System\Windows\Forms\ToolStripDropDownTests.cs (1)
2938AccessibleRole = AccessibleRole.HelpBalloon
System\Windows\Forms\ToolStripTests.cs (1)
4221AccessibleRole = AccessibleRole.HelpBalloon
TextBoxTests.cs (1)
475AccessibleRole = AccessibleRole.HelpBalloon
WinFormsControlsTest (2)
MultipleControls.Designer.cs (2)
90this.label1.AccessibleRole = System.Windows.Forms.AccessibleRole.Indicator; 213this.groupBox1.AccessibleRole = System.Windows.Forms.AccessibleRole.Table;
78 references to AccessibleRole
System.Windows.Forms (7)
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (1)
309AccessibleRole role = accessibleObject.Owner?.AccessibleRole ?? AccessibleRole.Default;
System\Windows\Forms\Accessibility\AccessibleRoles.cs (1)
10/// If adding to this enumeration please update <see cref="Control.AccessibleRole"/> and
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
431AccessibleRole role = Owner?.AccessibleRole ?? 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\DataGridView\DataGridView.AccessibleObject.cs (1)
214return (this.TryGetOwnerAs(out owner) && owner.AccessibleRole == AccessibleRole.Default)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
429this.TryGetOwnerAs(out MonthCalendar? owner) && owner.AccessibleRole == AccessibleRole.Default
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
341get => base.AccessibleRole;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System.Windows.Forms.Tests (57)
System\Windows\Forms\AxHostTests.cs (2)
33Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 127Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ButtonBaseTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ButtonTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\CheckBoxTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ComboBoxTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ContainerControlTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ControlBindingsCollectionTests.cs (1)
103Binding binding2 = new(nameof(SubControl.AccessibleRole), 1, "dataMember");
System\Windows\Forms\ControlTests.cs (5)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 109Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 205Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 301Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 397Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ControlTests.Properties.cs (2)
162Assert.Equal(value, control.AccessibleRole); 167Assert.Equal(value, control.AccessibleRole);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\DateTimePickerTests.cs (1)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\FormTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\GroupBoxTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\HScrollBarTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\LabelTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ListBoxTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ListControlTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ListViewTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\MdiClientTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\MenuStripTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\MonthCalendarTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\PanelTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\PictureBoxTests.cs (1)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ProgressBarTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\PropertyGridTests.cs (1)
28Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\RadioButtonTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\RichTextBoxTests.cs (1)
32Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ScrollableControlTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ScrollBarTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\SplitterPanelTests.cs (1)
27Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\SplitterTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\StatusStripTests.cs (1)
20Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\TabControlTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\TabPageTests.cs (2)
25Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 134Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStripControlHostTests.cs (2)
233Assert.Equal(value, c.AccessibleRole); 239Assert.Equal(value, c.AccessibleRole);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
22Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStripPanelTests.cs (1)
19Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\ToolStripTests.cs (2)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole); 182Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\TreeViewTests.cs (1)
21Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\UserControlTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System\Windows\Forms\VScrollBarTests.cs (1)
19Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
TextBoxTests.cs (1)
24Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
TrackBarTests.cs (1)
23Assert.Equal(AccessibleRole.Default, control.AccessibleRole);
System.Windows.Forms.UI.IntegrationTests (13)
PropertyGridInternal\DropDownButton.DropDownButtonAccessibleObjectTests.cs (3)
22grid.SelectedEntry = grid[nameof(Button.AccessibleRole)]; 36grid.SelectedEntry = grid[nameof(Button.AccessibleRole)]; 50grid.SelectedEntry = grid[nameof(Button.AccessibleRole)];
PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (3)
174grid.SelectedEntry = grid[nameof(Button.AccessibleRole)]; 188grid.SelectedEntry = grid[nameof(Button.AccessibleRole)]; 261grid.SelectedEntry = grid[nameof(Button.AccessibleRole)];
PropertyGridInternal\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (4)
22grid.SelectedEntry = grid[nameof(Button.AccessibleRole)]; 38grid.SelectedEntry = grid[nameof(Button.AccessibleRole)]; 52grid.SelectedEntry = grid[nameof(Button.AccessibleRole)]; 68grid.SelectedEntry = grid[nameof(Button.AccessibleRole)];
PropertyGridInternal\PropertyGridView.GridViewListBox.GridViewListBoxAccessibleObjectTests.cs (3)
22grid.SelectedEntry = grid[nameof(Button.AccessibleRole)]; 40grid.SelectedEntry = grid[nameof(Button.AccessibleRole)]; 56grid.SelectedEntry = grid[nameof(Button.AccessibleRole)];