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)
119
UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)
State
.HasFlag(AccessibleStates.Focusable),
120
UIA_PROPERTY_ID.UIA_SelectionItemIsSelectedPropertyId => (VARIANT)
State
.HasFlag(AccessibleStates.Selected),
221
internal override bool IsItemSelected => (
State
& AccessibleStates.Selected) != 0;
System.Windows.Forms.Tests (11)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (11)
523
Assert.Equal(InvisibleItemState, comboBoxItem1.
State
); // comboBoxItem1 above the visible area
524
Assert.Equal(VisibleItemState, comboBoxItem2.
State
); // comboBoxItem2 in the visible area
525
Assert.Equal(InvisibleItemState, comboBoxItem3.
State
); // comboBoxItem3 below the visible area
542
Assert.Equal(InvisibleItemState, comboBoxItem1.
State
); // comboBoxItem1 above the visible area
543
Assert.Equal(VisibleItemState, comboBoxItem2.
State
); // comboBoxItem2 in the visible area
544
Assert.Equal(InvisibleItemState, comboBoxItem3.
State
); // comboBoxItem3 below the visible area
559
Assert.Equal(InvisibleItemState, comboBoxItem1.
State
);
560
Assert.Equal(InvisibleItemState, comboBoxItem2.
State
);
577
Assert.Equal(InvisibleItemState, comboBoxItem1.
State
); // comboBoxItem1 above the visible area
578
Assert.Equal(itemState, comboBoxItem2.
State
); // comboBoxItem2 in the visible area
579
Assert.Equal(InvisibleItemState, comboBoxItem3.
State
); // comboBoxItem3 below the visible area