Graphics.DrawLines

DrawLines(Pen, Point[])

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


DrawLines(Pen, PointF[])

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