Draws a line between two points.
Syntax

[C#]

void DrawLine(Pen pen, double x1, double y1, double x2, double y2);
void DrawLine(Pen pen, PointF pt1, PointF pt2);

[Visual Basic]

Sub DrawLine(pen As Pen, x1 As Double, y1 As Double, x2 As Double, y2 As Double)
Sub DrawLine(pen As Pen, pt1 As PointF, pt2 As PointF)
Params
Name Description
pen The pen to use for drawing the line.
x1 The x coordinate of the point at the start of the line.
y1 The y coordinate of the point at the start of the line.
x2 The x coordinate of the point at the end of the line.
y2 The y coordinate of the point at the end of the line.
pt1 The point at the start of the line.
pt2 The point at the end of the line.
Notes

None.

Example

None.