8 references to DrawCheckBox
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1260
ControlPaint.
DrawCheckBox
(
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1228
=>
DrawCheckBox
(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlPaintTests.cs (6)
1003
ControlPaint.
DrawCheckBox
(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state);
1006
ControlPaint.
DrawCheckBox
(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state);
1015
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawCheckBox
(null, 1, 2, 3, 4, state));
1030
Assert.Throws<ArgumentException>(() => ControlPaint.
DrawCheckBox
(graphics, 0, 0, width, height, state));
1041
Assert.Throws<ArgumentOutOfRangeException>(expectedParamName, () => ControlPaint.
DrawCheckBox
(graphics, 0, 0, -3, 4, state));
1052
Assert.Throws<ArgumentOutOfRangeException>(expectedParamName, () => ControlPaint.
DrawCheckBox
(graphics, 0, 0, 3, -4, state));