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