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