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)
839ControlPaint.DrawButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 842ControlPaint.DrawButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 851Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawButton(null, 1, 2, 3, 4, state)); 866Assert.Throws<ArgumentException>(() => ControlPaint.DrawButton(graphics, 0, 0, width, height, state)); 877Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawButton(graphics, 0, 0, -3, 4, state)); 888Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawButton(graphics, 0, 0, 3, -4, state));