DrawLines

Graphics.DrawLines method (1 of 2)

Draws a series of line segments that connect an array of Point structures.

public void DrawLines(Pen pen, Point[] points)
ParameterTypeDescription
penPenPen that determines the color, width, and style of the line segments.
pointsPoint[]Array of Point structures that represent the points to connect.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null. -or- points is null.
ArgumentExceptionThe points array contains less than 2 points.

See Also


Graphics.DrawLines method (2 of 2)

Draws a series of line segments that connect an array of PointF structures.

public void DrawLines(Pen pen, PointF[] points)
ParameterTypeDescription
penPenPen that determines the color, width, and style of the line segments.
pointsPointF[]Array of PointF structures that represent the points to connect.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null. -or- points is null.
ArgumentExceptionThe points array contains less than 2 points.

See Also