10 references to DrawLine
System.Drawing.Common.Tests (4)
System\Drawing\Graphics_DrawLineTests.cs (4)
43
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.
DrawLine
(null, Point.Empty, Point.Empty));
57
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawLine
(pen, Point.Empty, Point.Empty));
72
Assert.Throws<InvalidOperationException>(() => graphics.
DrawLine
(pen, Point.Empty, Point.Empty));
91
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawLine
(pen, Point.Empty, Point.Empty));
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1677
graphics.
DrawLine
(pen, start, end);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
487
graphics.
DrawLine
(pen, point1, point2); // vertical line
526
graphics.
DrawLine
(pen, point1, point2); // horizontal line
System.Windows.Forms.Primitives.Tests (3)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (3)
87
g.
DrawLine
(Pens.DarkBlue, default, default);
206
g.
DrawLine
(Pens.DarkBlue, default, default);
280
g.
DrawLine
(Pens.DarkBlue, default, default);