11 references to DrawArc
System.Drawing.Common (3)
System\Drawing\Graphics.cs (3)
667
DrawArc
(pen, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
673
=>
DrawArc
(pen, (float)x, y, width, height, startAngle, sweepAngle);
679
DrawArc
(pen, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
System.Drawing.Common.Tests (8)
System\Drawing\Graphics_DrawBezierTests.cs (1)
113
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawArc
(pen, 0f, 0f, 1f, 1f, 0, 90));
System\Drawing\GraphicsTests.cs (7)
1963
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.
DrawArc
(null, 0f, 0f, 1f, 1f, 0, 90));
1977
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawArc
(pen, 0f, 0f, 1f, 1f, 0, 90));
1989
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawArc
(pen, 0f, 0f, 0f, 1f, 0, 90));
2001
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawArc
(pen, 0f, 0f, 1f, 0f, 0, 90));
2016
Assert.Throws<InvalidOperationException>(() => graphics.
DrawArc
(pen, 0f, 0f, 1f, 1f, 0, 90));
2035
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawArc
(pen, 0f, 0f, 1f, 1f, 0, 90));
2269
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawArc
(pen, 0f, 0f, 1f, 0f, 0, 90));