10 references to NoFocusRect
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
708
(e.State & DrawItemState.
NoFocusRect
) != DrawItemState.
NoFocusRect
)
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (2)
135
&& (State & DrawItemState.
NoFocusRect
) != DrawItemState.
NoFocusRect
)
System.Windows.Forms.Tests (6)
System\Windows\Forms\DrawItemEventArgsTests.cs (6)
17
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.
NoFocusRect
, SystemColors.WindowText, SystemColors.Window };
42
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.
NoFocusRect
, Color.Red, Color.Blue };
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 };
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 };