16 references to ScrollButton
System.Windows.Forms (4)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (2)
308
ScrollButton
.Up,
314
ScrollButton
.Down,
System\Windows\Forms\Rendering\ControlPaint.cs (2)
1845
public static void DrawScrollButton(Graphics graphics, Rectangle rectangle,
ScrollButton
button, ButtonState state)
1854
ScrollButton
button,
System.Windows.Forms.Tests (12)
System\Windows\Forms\ControlPaintTests.cs (12)
1733
foreach (
ScrollButton
button in Enum.GetValues(typeof(
ScrollButton
)))
1747
public void ControlPaint_DrawScrollButton_InvokeGraphicsRectangleButtonState_Success(Rectangle rectangle,
ScrollButton
button, ButtonState state)
1759
public void ControlPaint_DrawScrollButton_InvokeGraphicsIntIntIntIntButtonState_Success(Rectangle rectangle,
ScrollButton
button, ButtonState state)
1774
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, new Rectangle(1, 2, 3, 4),
ScrollButton
.Up, state));
1775
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, 1, 2, 3, 4,
ScrollButton
.Up, state));
1788
Assert.Throws<ArgumentException>(() => ControlPaint.DrawScrollButton(graphics, new Rectangle(0, 0, width, height),
ScrollButton
.Up, state));
1789
Assert.Throws<ArgumentException>(() => ControlPaint.DrawScrollButton(graphics, 0, 0, width, height,
ScrollButton
.Up, state));
1799
Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawScrollButton(graphics, new Rectangle(0, 0, -3, 4),
ScrollButton
.Up, state));
1800
Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawScrollButton(graphics, 0, 0, -3, 4,
ScrollButton
.Up, state));
1810
Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawScrollButton(graphics, new Rectangle(0, 0, 3, -4),
ScrollButton
.Up, state));
1811
Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawScrollButton(graphics, 0, 0, 3, -4,
ScrollButton
.Up, state));