[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.DrawPolygon

DrawPolygon Method

DrawPolygon(PointF[], Color, float, DashStyle)

Draws a polygon specified by an array of points, using a specified line color, width and style.

If the value of lineStyle parameter is not Solid, the polygon is drawn with a Pen having LineCap set to Square instead of Flat.

Declaration
public void DrawPolygon(PointF[] points, Color lineColor, float lineWidth, DashStyle lineStyle = DashStyle.Solid)
Public Sub DrawPolygon(points As PointF(), lineColor As Color, lineWidth As Single, Optional lineStyle As DashStyle = DashStyle.Solid)
Parameters
Type Name Description
PointF[] points

An array of points specifying the polygon.

Color lineColor

The line color.

float lineWidth

The line width.

DashStyle lineStyle

The line style (solid by default).

DrawPolygon(PointF[], Color, float, float[])

Draws a polygon specified by an array of points, using a specified line color, width and dash pattern.

If the dashPattern array contains two or more items, the polygon is drawn with a Pen having LineCap set to Square instead of Flat.

Declaration
public void DrawPolygon(PointF[] points, Color lineColor, float lineWidth, float[] dashPattern)
Public Sub DrawPolygon(points As PointF(), lineColor As Color, lineWidth As Single, dashPattern As Single())
Parameters
Type Name Description
PointF[] points

An array of points specifying the polygon.

Color lineColor

The line color.

float lineWidth

The line width.

float[] dashPattern

The dash pattern.

DrawPolygon(PointF[], Pen)

Draws a polygon specified by an array of points, using a specified pen.

Declaration
public void DrawPolygon(PointF[] points, Pen pen)
Public Sub DrawPolygon(points As PointF(), pen As Pen)
Parameters
Type Name Description
PointF[] points

An array of points specifying the polygon.

Pen pen

The pen to use.

DrawPolygon(Quadrilateral, Color, float, DashStyle)

Draws a polygon specified by an array of points, using a specified line color, width and style.

If the value of lineStyle parameter is not Solid, the polygon is drawn with a Pen having LineCap set to Square instead of Flat.

Declaration
public void DrawPolygon(Quadrilateral quadrilateral, Color lineColor, float lineWidth, DashStyle lineStyle = DashStyle.Solid)
Public Sub DrawPolygon(quadrilateral As Quadrilateral, lineColor As Color, lineWidth As Single, Optional lineStyle As DashStyle = DashStyle.Solid)
Parameters
Type Name Description
Quadrilateral quadrilateral

A quadrilateral specifying the polygon.

Color lineColor

The line color.

float lineWidth

The line width.

DashStyle lineStyle

The line style (solid by default).

DrawPolygon(Quadrilateral, Color, float, float[])

Draws a polygon specified by an array of points, using a specified line color, width and dash pattern.

If the dashPattern array contains two or more items, the polygon is drawn with a Pen having LineCap set to Square instead of Flat.

Declaration
public void DrawPolygon(Quadrilateral quadrilateral, Color lineColor, float lineWidth, float[] dashPattern)
Public Sub DrawPolygon(quadrilateral As Quadrilateral, lineColor As Color, lineWidth As Single, dashPattern As Single())
Parameters
Type Name Description
Quadrilateral quadrilateral

A quadrilateral specifying the polygon.

Color lineColor

The line color.

float lineWidth

The line width.

float[] dashPattern

The dash pattern.

DrawPolygon(Quadrilateral, Pen)

Draws a polygon specified by an array of points, using a specified pen.

Declaration
public void DrawPolygon(Quadrilateral quadrilateral, Pen pen)
Public Sub DrawPolygon(quadrilateral As Quadrilateral, pen As Pen)
Parameters
Type Name Description
Quadrilateral quadrilateral

A quadrilateral specifying the polygon.

Pen pen

The pen to use.