7 references to DrawCaptionButton
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1203
ButtonState state) =>
DrawCaptionButton
(
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlPaintTests.cs (6)
923
ControlPaint.
DrawCaptionButton
(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, button, state);
926
ControlPaint.
DrawCaptionButton
(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, button, state);
935
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawCaptionButton
(null, 1, 2, 3, 4, CaptionButton.Close, state));
949
Assert.Throws<ArgumentException>(() => ControlPaint.
DrawCaptionButton
(graphics, 0, 0, width, height, CaptionButton.Close, state));
960
Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.
DrawCaptionButton
(graphics, 0, 0, -3, 4, CaptionButton.Close, state));
971
Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.
DrawCaptionButton
(graphics, 0, 0, 3, -4, CaptionButton.Close, state));