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