14 references to DrawButton
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (5)
81
ControlPaint.
DrawButton
(graphics, bounds, ConvertToButtonState(state));
108
ControlPaint.
DrawButton
(graphics, bounds, ConvertToButtonState(state));
157
ControlPaint.
DrawButton
(g, bounds, ConvertToButtonState(state));
186
ControlPaint.
DrawButton
(g, bounds, ConvertToButtonState(state));
265
ControlPaint.
DrawButton
(graphics, bounds, ConvertToButtonState(state));
System.Windows.Forms.Design (3)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
574
ControlPaint.
DrawButton
(g, button, ButtonState.Normal);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
201
ControlPaint.
DrawButton
(e.Graphics, rc, ButtonState.Normal);
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
302
ControlPaint.
DrawButton
(e.Graphics, rc, ButtonState.Pushed);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlPaintTests.cs (6)
827
ControlPaint.
DrawButton
(graphics, rectangle, state);
830
ControlPaint.
DrawButton
(graphics, rectangle, state);
850
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawButton
(null, new Rectangle(1, 2, 3, 4), state));
865
Assert.Throws<ArgumentException>(() => ControlPaint.
DrawButton
(graphics, new Rectangle(0, 0, width, height), state));
876
Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.
DrawButton
(graphics, new Rectangle(0, 0, -3, 4), state));
887
Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.
DrawButton
(graphics, new Rectangle(0, 0, 3, -4), state));