37 references to DrawItemState
System.Windows.Forms (25)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (10)
526(e.State & DrawItemState.HotLight) == DrawItemState.HotLight); 559((e.State & DrawItemState.HotLight) == DrawItemState.HotLight)); 594if (SelectionMode != SelectionMode.None && (e.State & DrawItemState.Selected) == DrawItemState.Selected) 709if ((e.State & DrawItemState.Focus) == DrawItemState.Focus && 710(e.State & DrawItemState.NoFocusRect) != DrawItemState.NoFocusRect)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2330e.State.HasFlag(DrawItemState.Selected) ? GridEntry.PaintValueFlags.DrawSelected : default,
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBarDrawItemEventArgs.cs (2)
28DrawItemState itemState, 41DrawItemState itemState,
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (12)
31public DrawItemEventArgs(Graphics graphics, Font? font, Rectangle rect, int index, DrawItemState state) 44DrawItemState state, 77State = (DrawItemState)state; 108public DrawItemState State { get; } 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 (12)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
595if ((e.State & DrawItemState.Selected) == DrawItemState.Selected) 603if ((e.State & DrawItemState.Focus) == DrawItemState.Focus)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
998if ((e.State & DrawItemState.Selected) == DrawItemState.Selected)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (6)
657bool isComboEditBox = (e.State & DrawItemState.ComboBoxEdit) == DrawItemState.ComboBoxEdit; 766if ((e.State & DrawItemState.Selected) == DrawItemState.Selected) 785if ((e.State & DrawItemState.Focus) == DrawItemState.Focus)