Graphics.DrawLines

DrawLines(Pen, Point[])

绘制一系列线段,将一个 Point 结构数组连接起来。

public void DrawLines(Pen pen, Point[] points)
参数类型描述
penPenPen 用于确定线段的颜色、宽度和样式。
pointsPoint[]Point 结构组成的数组,表示要连接的点。

异常

异常条件
ArgumentNullExceptionpen 为 null。-or- points 为 null。
ArgumentExceptionpoints 数组包含少于 2 个点。

另请参见


DrawLines(Pen, PointF[])

绘制一系列线段,将一个 PointF 结构数组连接起来。

public void DrawLines(Pen pen, PointF[] points)
参数类型描述
penPenPen 用于确定线段的颜色、宽度和样式。
pointsPointF[]PointF 结构组成的数组,表示要连接的点。

异常

异常条件
ArgumentNullExceptionpen 为 null。-or- points 为 null。
ArgumentExceptionpoints 数组包含少于 2 个点。

另请参见