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)
17yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, SystemColors.WindowText, SystemColors.Window }; 42yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, Color.Red, Color.Blue }; 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 }; 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 };