System.Drawing.Graphics.DrawLines Method

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

Syntax

public void DrawLines (Pen pen, Point[] points)

Parameters

pen
System.Drawing.Pen that determines the color, width, and style of the line segments.
points
Array of System.Drawing.Point structures that represent the points to connect.

Remarks

This method draws a series of lines connecting an array of ending points. The first two points in the array specify the first line. Each additional point specifies the end of a line segment whose starting point is the ending point of the previous line segment.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0