18 references to ScrollButton
System.Windows.Forms (6)
System\Windows\Forms\Rendering\ControlPaint.cs (6)
1870
public static void DrawScrollButton(Graphics graphics, Rectangle rectangle,
ScrollButton
button, ButtonState state)
1879
ScrollButton
button,
1896
ScrollButton
.Up => ModernControlButtonStyle.Up,
1897
ScrollButton
.Down => ModernControlButtonStyle.Down,
1898
ScrollButton
.Left => ModernControlButtonStyle.Left,
1899
ScrollButton
.Right => ModernControlButtonStyle.Right,
System.Windows.Forms.Tests (12)
System\Windows\Forms\ControlPaintTests.cs (12)
1735
foreach (
ScrollButton
button in Enum.GetValues(typeof(
ScrollButton
)))
1749
public void ControlPaint_DrawScrollButton_InvokeGraphicsRectangleButtonState_Success(Rectangle rectangle,
ScrollButton
button, ButtonState state)
1761
public void ControlPaint_DrawScrollButton_InvokeGraphicsIntIntIntIntButtonState_Success(Rectangle rectangle,
ScrollButton
button, ButtonState state)
1776
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, new Rectangle(1, 2, 3, 4),
ScrollButton
.Up, state));
1777
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, 1, 2, 3, 4,
ScrollButton
.Up, state));
1790
Assert.Throws<ArgumentException>(() => ControlPaint.DrawScrollButton(graphics, new Rectangle(0, 0, width, height),
ScrollButton
.Up, state));
1791
Assert.Throws<ArgumentException>(() => ControlPaint.DrawScrollButton(graphics, 0, 0, width, height,
ScrollButton
.Up, state));
1801
Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawScrollButton(graphics, new Rectangle(0, 0, -3, 4),
ScrollButton
.Up, state));
1802
Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawScrollButton(graphics, 0, 0, -3, 4,
ScrollButton
.Up, state));
1812
Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawScrollButton(graphics, new Rectangle(0, 0, 3, -4),
ScrollButton
.Up, state));
1813
Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawScrollButton(graphics, 0, 0, 3, -4,
ScrollButton
.Up, state));