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