11 references to DrawCheckBox
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
289
ControlPaint.
DrawCheckBox
(e.GraphicsInternal, layout.CheckBounds, style);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (3)
65
ControlPaint.
DrawCheckBox
(g, glyphBounds, ConvertToButtonState(state));
141
ControlPaint.
DrawCheckBox
(g, glyphBounds, ConvertToButtonState(state));
213
ControlPaint.
DrawCheckBox
(g, glyphBounds, ConvertToButtonState(state));
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
565
ControlPaint.
DrawCheckBox
(e.Graphics, box, state);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlPaintTests.cs (6)
991
ControlPaint.
DrawCheckBox
(graphics, rectangle, state);
994
ControlPaint.
DrawCheckBox
(graphics, rectangle, state);
1014
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawCheckBox
(null, new Rectangle(1, 2, 3, 4), state));
1029
Assert.Throws<ArgumentException>(() => ControlPaint.
DrawCheckBox
(graphics, new Rectangle(0, 0, width, height), state));
1040
Assert.Throws<ArgumentOutOfRangeException>(expectedParamName, () => ControlPaint.
DrawCheckBox
(graphics, new Rectangle(0, 0, -3, 4), state));
1051
Assert.Throws<ArgumentOutOfRangeException>(expectedParamName, () => ControlPaint.
DrawCheckBox
(graphics, new Rectangle(0, 0, 3, -4), state));