7 references to DrawButton
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1180
=>
DrawButton
(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlPaintTests.cs (6)
839
ControlPaint.
DrawButton
(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state);
842
ControlPaint.
DrawButton
(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state);
851
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawButton
(null, 1, 2, 3, 4, state));
866
Assert.Throws<ArgumentException>(() => ControlPaint.
DrawButton
(graphics, 0, 0, width, height, state));
877
Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.
DrawButton
(graphics, 0, 0, -3, 4, state));
888
Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.
DrawButton
(graphics, 0, 0, 3, -4, state));