18 references to Focus
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
707if ((e.State & DrawItemState.Focus) == DrawItemState.Focus &&
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (2)
134if ((State & DrawItemState.Focus) == DrawItemState.Focus
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
589if ((e.State & DrawItemState.Focus) == DrawItemState.Focus)
System.Windows.Forms.Tests (12)
System\Windows\Forms\DrawItemEventArgsTests.cs (12)
16yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, SystemColors.WindowText, SystemColors.Window }; 17yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, SystemColors.WindowText, SystemColors.Window }; 41yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, Color.Red, Color.Blue }; 42yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, Color.Red, Color.Blue }; 73yield return new object[] { new Rectangle(1, 2, 3, 4), DrawItemState.Focus }; 74yield return new object[] { new Rectangle(1, 2, 3, 4), DrawItemState.Focus | DrawItemState.Selected }; 75yield return new object[] { new Rectangle(1, 2, 3, 4), DrawItemState.Focus | DrawItemState.NoFocusRect }; 76yield return new object[] { new Rectangle(1, 2, 3, 4), DrawItemState.Focus | DrawItemState.NoFocusRect | DrawItemState.Selected }; 79yield return new object[] { new Rectangle(-1, -2, -3, -4), DrawItemState.Focus }; 80yield return new object[] { new Rectangle(-1, -2, -3, -4), DrawItemState.Focus | DrawItemState.Selected }; 81yield return new object[] { new Rectangle(-1, -2, -3, -4), DrawItemState.Focus | DrawItemState.NoFocusRect }; 82yield return new object[] { new Rectangle(-1, -2, -3, -4), DrawItemState.Focus | DrawItemState.NoFocusRect | DrawItemState.Selected };