Method DrawLine
DrawLine(Pen, PointD, PointD)
Draws a line connecting two points.
void DrawLine(Pen pen, PointD a, PointD b)
Parameters
pen
PenPen that determines the color, width, and style of the line.
a
PointDPointD structure that represents the first point to connect.
b
PointDPointD structure that represents the second point to connect.
Exceptions
- ArgumentNullException
pen
is null.
DrawLine(Pen, double, double, double, double)
Draws a line connecting two points.
void DrawLine(Pen pen, double x1, double y1, double x2, double y2)