Graphics.DrawPolygon

DrawPolygon(Pen, PointF[])

Draws a polygon defined by an array of PointF structures.

public void DrawPolygon(Pen pen, PointF[] points)
ParameterTypeDescription
penPenPen that determines the color, width, and style of the polygon.
pointsPointF[]Array of PointF structures that represent the vertices of the polygon.

Exceptions

exceptioncondition
ArgumentNullExceptionpen 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)
ParameterTypeDescription
penPenPen that determines the color, width, and style of the polygon.
pointsPoint[]Array of Point structures that represent the vertices of the polygon.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null.

See Also