35 overrides of State
System.Windows.Forms (31)
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (1)
17public override AccessibleStates State =>
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
111public override AccessibleStates State => SystemIAccessible.TryGetState(GetChildId());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
195public override AccessibleStates State
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
123public override AccessibleStates State
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
156public override AccessibleStates State
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
27public override AccessibleStates State => AccessibleStates.Selected | AccessibleStates.Selectable;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
125public override AccessibleStates State
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
163public override AccessibleStates State
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
28public override AccessibleStates State
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
57public override AccessibleStates State
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
139public override AccessibleStates State
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
44public override AccessibleStates State
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
98public override AccessibleStates State
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
129public override AccessibleStates State
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
80public override AccessibleStates State
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
133public override AccessibleStates State
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarChildAccessibleObject.cs (1)
65public override AccessibleStates State => AccessibleStates.None;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
79public override AccessibleStates State
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObject.cs (1)
22public override AccessibleStates State
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
35public override AccessibleStates State
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
59public override AccessibleStates State => SystemIAccessibleInternal.TryGetState(GetChildId());
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
19public override AccessibleStates State => SystemIAccessible.TryGetState(GetChildId());
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
160public override AccessibleStates State
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
47public override AccessibleStates State
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
45public override AccessibleStates State
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
156public override AccessibleStates State
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
75public override AccessibleStates State
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainItemAccessibleObject.cs (1)
39public override AccessibleStates State => AccessibleStates.Selectable;
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
138public override AccessibleStates State => AccessibleStates.HasPopup | AccessibleStates.ReadOnly;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
123public override AccessibleStates State => AccessibleStates.ReadOnly;
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
56public override AccessibleStates State
System.Windows.Forms.Design (4)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
53public override AccessibleStates State
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
339public override AccessibleStates State
System\Windows\Forms\Design\ComponentTray.cs (1)
2581public override AccessibleStates State
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
40public override AccessibleStates State
135 references to State
System.Windows.Forms (25)
System\Windows\Forms\Accessibility\AccessibleObject.cs (9)
436if (child is not null && child.State.HasFlag(AccessibleStates.Focused)) 442return State.HasFlag(AccessibleStates.Focused) ? this : null; 504if (child is not null && child.State.HasFlag(AccessibleStates.Selected)) 510return State.HasFlag(AccessibleStates.Selected) ? this : null; 625UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)((State & AccessibleStates.Offscreen) == AccessibleStates.Offscreen), 641UIA_PROPERTY_ID.UIA_LegacyIAccessibleStatePropertyId => (VARIANT)(int)State, 1244*pdwState = (uint)State; 2375*pvarState = (VARIANT)(int)State; 2383*pvarState = (VARIANT)(int)child.State;
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (1)
39UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focusable),
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (2)
19? base.State | AccessibleStates.Pressed 20: base.State;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (1)
78UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focusable),
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (2)
50if (child is not null && (child.State & AccessibleStates.Selected) == AccessibleStates.Selected) 73if (child is not null && (child.State & AccessibleStates.Selected) == AccessibleStates.Selected)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
61AccessibleStates state = base.State;
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
234UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focusable),
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObject.cs (1)
26AccessibleStates states = base.State;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.ToolStripContainerAccessibleObject.cs (1)
21UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focusable),
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripHostedControlAccessibleObject.cs (1)
59UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focused),
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.ToolStripDropDownAccessibleObject.cs (1)
20UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focusable),
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
166return base.State | _additionalState;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControlAccessibleObject.cs (1)
24UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focused),
System\Windows\Forms\Layout\Containers\SplitContainer.SplitContainerAccessibleObject.cs (1)
22UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focusable),
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (1)
24UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focusable),
System.Windows.Forms.Design (4)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
57AccessibleStates state = base.State;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
343AccessibleStates state = base.State;
System\Windows\Forms\Design\ComponentTray.cs (1)
2585AccessibleStates state = base.State;
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
44AccessibleStates state = _control.AccessibilityObject.State;
System.Windows.Forms.Tests (104)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (29)
29Assert.Equal(AccessibleStates.None, accessibleObject.State); 102.Setup(a => a.State) 118.Setup(a => a.State) 142.Setup(a => a.State) 158.Setup(a => a.State) 162.Setup(a => a.State) 179.Setup(a => a.State) 211.Setup(a => a.State) 227.Setup(a => a.State) 251.Setup(a => a.State) 267.Setup(a => a.State) 271.Setup(a => a.State) 288.Setup(a => a.State) 624Assert.Equal(AccessibleStates.None, accessibleObject.State); 643Assert.Equal(AccessibleStates.Focusable, accessibleObject.State); 664Assert.Equal(AccessibleStates.ReadOnly, accessibleObject.State); 690Assert.Equal(AccessibleStates.None, accessibleObject.State); 709Assert.Equal(AccessibleStates.None, accessibleObject.State); 728Assert.Equal(AccessibleStates.Invisible | AccessibleStates.Offscreen | AccessibleStates.Focusable, accessibleObject.State); 747Assert.Equal(AccessibleStates.Focusable, accessibleObject.State); 768Assert.Equal(AccessibleStates.None, accessibleObject.State); 789Assert.Equal(AccessibleStates.ReadOnly, accessibleObject.State); 810Assert.Equal(AccessibleStates.Invisible | AccessibleStates.Offscreen | AccessibleStates.Focusable, accessibleObject.State); 2250.Setup(a => a.State) 2255mockAccessibleObject.Verify(a => a.State, Times.Once()); 2267.Setup(a => a.State) 2272.Setup(a => a.State) 2292mockAccessibleObjectChild1.Verify(a => a.State, Times.Exactly(child1CallCount)); 2293mockAccessibleObjectChild2.Verify(a => a.State, Times.Exactly(child2CallCount));
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (3)
336item.State.Should().Be(AccessibleStates.None); 356item.State.Should().HaveFlag(expectedState); 371item.State.Should().HaveFlag(AccessibleStates.Selected)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (10)
42Assert.NotEqual(AccessibleStates.Collapsed, accessibleObject.State & AccessibleStates.Collapsed); 43Assert.Equal(AccessibleStates.Expanded, accessibleObject.State & AccessibleStates.Expanded); 46Assert.Equal(AccessibleStates.Collapsed, accessibleObject.State & AccessibleStates.Collapsed); 47Assert.NotEqual(AccessibleStates.Expanded, accessibleObject.State & AccessibleStates.Expanded); 66Assert.Equal(AccessibleStates.None, accessibleObject.State); 67Assert.NotEqual(AccessibleStates.Collapsed, accessibleObject.State & AccessibleStates.Collapsed); 68Assert.NotEqual(AccessibleStates.Expanded, accessibleObject.State & AccessibleStates.Expanded); 71Assert.Equal(AccessibleStates.None, accessibleObject.State); 72Assert.NotEqual(AccessibleStates.Collapsed, accessibleObject.State & AccessibleStates.Collapsed); 73Assert.NotEqual(AccessibleStates.Expanded, accessibleObject.State & AccessibleStates.Expanded);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (11)
521Assert.Equal(InvisibleItemState, comboBoxItem1.State); // comboBoxItem1 above the visible area 522Assert.Equal(VisibleItemState, comboBoxItem2.State); // comboBoxItem2 in the visible area 523Assert.Equal(InvisibleItemState, comboBoxItem3.State); // comboBoxItem3 below the visible area 540Assert.Equal(InvisibleItemState, comboBoxItem1.State); // comboBoxItem1 above the visible area 541Assert.Equal(VisibleItemState, comboBoxItem2.State); // comboBoxItem2 in the visible area 542Assert.Equal(InvisibleItemState, comboBoxItem3.State); // comboBoxItem3 below the visible area 557Assert.Equal(InvisibleItemState, comboBoxItem1.State); 558Assert.Equal(InvisibleItemState, comboBoxItem2.State); 575Assert.Equal(InvisibleItemState, comboBoxItem1.State); // comboBoxItem1 above the visible area 576Assert.Equal(itemState, comboBoxItem2.State); // comboBoxItem2 in the visible area 577Assert.Equal(InvisibleItemState, comboBoxItem3.State); // comboBoxItem3 below the visible area
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
67Assert.Equal(AccessibleStates.None, accessibleObject.State); 102Assert.Equal(AccessibleStates.Focusable, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
256Assert.Equal(expectedAccessibleStates, accessibleObject.State & AccessibleStates.Focusable);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
337Assert.Throws<InvalidOperationException>(() => accessibleObject.State);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (3)
211Assert.Equal(expected, accessibleObject.State); 218Assert.Throws<InvalidOperationException>(() => accessibleObject.State); 317Assert.Equal(AccessibleStates.Selected | AccessibleStates.Selectable, selectedAccessibleObject.State);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
49Assert.Equal(AccessibleStates.Selected | AccessibleStates.Selectable, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
49Assert.Equal(AccessibleStates.Selected | AccessibleStates.Selectable, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (1)
107Assert.Equal(AccessibleStates.HasPopup | AccessibleStates.ReadOnly, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (1)
41Assert.Equal(AccessibleStates.ReadOnly, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
88Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
144Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
110Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
133Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
121Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (2)
660Assert.Equal(expectedAccessibleStates, accessibleObject.State); 724Assert.Equal(expectedAccessibleStates, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (6)
86accessibleObject.State.Should().NotHaveFlag(AccessibleStates.Selected); 90accessibleObject.State.Should().NotHaveFlag(AccessibleStates.Selected); 121accessibleObject.State.Should().NotHaveFlag(AccessibleStates.Selected); 125accessibleObject.State.Should().NotHaveFlag(AccessibleStates.Selected); 139accessibleObject.State.Should().NotHaveFlag(AccessibleStates.Selected); 143accessibleObject.State.Should().HaveFlag(AccessibleStates.Selected);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
313Assert.Equal(AccessibleStates.None, calendar.State);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
185Assert.Equal(AccessibleStates.Default, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (1)
103AccessibleStates actual = cellAccessibleObject.State;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarWeekNumberCellAccessibleObjectTests.cs (1)
107AccessibleStates actual = cellAccessibleObject.State;
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
33Assert.Equal(AccessibleStates.ReadOnly | AccessibleStates.Focusable, accessibilityObject.State); 58Assert.Equal(AccessibleStates.None, accessibilityObject.State);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (1)
197Assert.Equal(AccessibleStates.Focusable, accessibleObject.State & AccessibleStates.Focusable);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
111Assert.Equal(expectedAccessibleStates, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (3)
133Assert.Equal(AccessibleStates.Focusable | AccessibleStates.Selectable | AccessibleStates.Selected, accessibleObject1.State); 134Assert.Equal(AccessibleStates.Focusable | AccessibleStates.Selectable, accessibleObject2.State); 149Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
182Assert.Equal(expectedAccessibleStates, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
36Assert.Equal(AccessibleStates.Focusable, accessibilityObject.State); 59Assert.Equal(AccessibleStates.None, accessibilityObject.State);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (1)
156Assert.Equal(expectedState, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (1)
157Assert.Equal(expectedState, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (1)
85Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (1)
88Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (1)
144Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (1)
110Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
133Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
121Assert.Equal(AccessibleStates.None, accessibleObject.State);
System\Windows\Forms\MonthCalendarTests.cs (1)
4421cellAccessibleObject.State.Should().Be(expectedState);
System\Windows\Forms\ScrollBarTests.cs (4)
2970Assert.Equal(accessibleState, HFirstPageButton(hScrollBar).State); 3014Assert.Equal(accessibleState, HLastPageButton(hScrollBar).State); 3071Assert.Equal(accessibleState, VLastPageButton(vScrollBar).State); 3102Assert.Equal(accessibleState, VFirstPageButton(vScrollBar).State);
System.Windows.Forms.UI.IntegrationTests (2)
ListBoxAccesibleObjectTests.cs (2)
25listBox.AccessibilityObject.State.Should().Be(AccessibleStates.Focusable); 29listBox.AccessibilityObject.State.Should().Be(AccessibleStates.Focused | AccessibleStates.Focusable);