Graphics.DrawPolygon
DrawPolygon(Pen, PointF[])
Draws a polygon defined by an array of PointF structures.
public void DrawPolygon(Pen pen, PointF[] points)
| Parameter | Type | Description |
|---|
| pen | Pen | Pen that determines the color, width, and style of the polygon. |
| points | PointF[] | Array of PointF structures that represent the vertices of the polygon. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | pen is null. -or- points is null. |
See Also
DrawPolygon(Pen, Point[])
Draws a polygon defined by an array of Point structures.
public void DrawPolygon(Pen pen, Point[] points)
| Parameter | Type | Description |
|---|
| pen | Pen | Pen that determines the color, width, and style of the polygon. |
| points | Point[] | Array of Point structures that represent the vertices of the polygon. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | pen is null. |
See Also