Base:
property
State
System.Windows.Forms.AccessibleObject.State
14 references to State
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (3)
119UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)State.HasFlag(AccessibleStates.Focusable), 120UIA_PROPERTY_ID.UIA_SelectionItemIsSelectedPropertyId => (VARIANT)State.HasFlag(AccessibleStates.Selected), 221internal override bool IsItemSelected => (State & AccessibleStates.Selected) != 0;
System.Windows.Forms.Tests (11)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (11)
523Assert.Equal(InvisibleItemState, comboBoxItem1.State); // comboBoxItem1 above the visible area 524Assert.Equal(VisibleItemState, comboBoxItem2.State); // comboBoxItem2 in the visible area 525Assert.Equal(InvisibleItemState, comboBoxItem3.State); // comboBoxItem3 below the visible area 542Assert.Equal(InvisibleItemState, comboBoxItem1.State); // comboBoxItem1 above the visible area 543Assert.Equal(VisibleItemState, comboBoxItem2.State); // comboBoxItem2 in the visible area 544Assert.Equal(InvisibleItemState, comboBoxItem3.State); // comboBoxItem3 below the visible area 559Assert.Equal(InvisibleItemState, comboBoxItem1.State); 560Assert.Equal(InvisibleItemState, comboBoxItem2.State); 577Assert.Equal(InvisibleItemState, comboBoxItem1.State); // comboBoxItem1 above the visible area 578Assert.Equal(itemState, comboBoxItem2.State); // comboBoxItem2 in the visible area 579Assert.Equal(InvisibleItemState, comboBoxItem3.State); // comboBoxItem3 below the visible area