2 writes to State
System.Windows.Forms (2)
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (2)
51State = state; 77State = (DrawItemState)state;
15 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)); 594if (SelectionMode != SelectionMode.None && (e.State & DrawItemState.Selected) == DrawItemState.Selected) 707if ((e.State & DrawItemState.Focus) == DrawItemState.Focus && 708(e.State & DrawItemState.NoFocusRect) != DrawItemState.NoFocusRect)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2307e.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; 134if ((State & DrawItemState.Focus) == DrawItemState.Focus 135&& (State & DrawItemState.NoFocusRect) != DrawItemState.NoFocusRect)
System.Windows.Forms.Design (3)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
581if ((e.State & DrawItemState.Selected) == DrawItemState.Selected) 589if ((e.State & DrawItemState.Focus) == DrawItemState.Focus)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1001if ((e.State & DrawItemState.Selected) == DrawItemState.Selected)
System.Windows.Forms.Tests (2)
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
31Assert.Equal(state, e.State); 57Assert.Equal(state, e.State);