2 writes to State
System.Windows.Forms (2)
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (2)
51
State
= state;
77
State
= (DrawItemState)state;
18 references to State
System.Windows.Forms (10)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (5)
526
(e.
State
& DrawItemState.HotLight) == DrawItemState.HotLight);
559
((e.
State
& DrawItemState.HotLight) == DrawItemState.HotLight));
594
if (SelectionMode != SelectionMode.None && (e.
State
& DrawItemState.Selected) == DrawItemState.Selected)
707
if ((e.
State
& DrawItemState.Focus) == DrawItemState.Focus &&
708
(e.
State
& DrawItemState.NoFocusRect) != DrawItemState.NoFocusRect)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2307
e.
State
.HasFlag(DrawItemState.Selected) ? GridEntry.PaintValueFlags.DrawSelected : default,
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (4)
115
=> (
State
& DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.HighlightText : _foreColor;
118
=> (
State
& DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.Highlight : _backColor;
134
if ((
State
& DrawItemState.Focus) == DrawItemState.Focus
135
&& (
State
& DrawItemState.NoFocusRect) != DrawItemState.NoFocusRect)
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
581
if ((e.
State
& DrawItemState.Selected) == DrawItemState.Selected)
589
if ((e.
State
& DrawItemState.Focus) == DrawItemState.Focus)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1001
if ((e.
State
& DrawItemState.Selected) == DrawItemState.Selected)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
661
bool isComboEditBox = (e.
State
& DrawItemState.ComboBoxEdit) == DrawItemState.ComboBoxEdit;
770
if ((e.
State
& DrawItemState.Selected) == DrawItemState.Selected)
789
if ((e.
State
& DrawItemState.Focus) == DrawItemState.Focus)
System.Windows.Forms.Tests (2)
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
33
Assert.Equal(state, e.
State
);
59
Assert.Equal(state, e.
State
);