Graphics.DrawLines
DrawLines(Pen, Point[])
绘制一系列线段,将一个 Point 结构数组连接起来。
public void DrawLines(Pen pen, Point[] points)
| 参数 | 类型 | 描述 |
|---|
| pen | Pen | Pen 用于确定线段的颜色、宽度和样式。 |
| points | Point[] | 由 Point 结构组成的数组,表示要连接的点。 |
异常
| 异常 | 条件 |
|---|
| ArgumentNullException | pen 为 null。-or- points 为 null。 |
| ArgumentException | 该 points 数组包含少于 2 个点。 |
另请参见
DrawLines(Pen, PointF[])
绘制一系列线段,将一个 PointF 结构数组连接起来。
public void DrawLines(Pen pen, PointF[] points)
| 参数 | 类型 | 描述 |
|---|
| pen | Pen | Pen 用于确定线段的颜色、宽度和样式。 |
| points | PointF[] | 由 PointF 结构组成的数组,表示要连接的点。 |
异常
| 异常 | 条件 |
|---|
| ArgumentNullException | pen 为 null。-or- points 为 null。 |
| ArgumentException | 该 points 数组包含少于 2 个点。 |
另请参见