Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawPolygon Method / DrawPolygon(Quadrilateral,Color,Single,DashStyle) Method
A quadrilateral specifying the polygon.
The line color.
The line width.
The line style (solid by default).

In This Topic
    DrawPolygon(Quadrilateral,Color,Single,DashStyle) Method
    In This Topic
    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 DashStyle.Solid, the polygon is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

    Syntax
    'Declaration
     
    Public Overloads Sub DrawPolygon( _
       ByVal quadrilateral As Quadrilateral, _
       ByVal lineColor As System.Drawing.Color, _
       ByVal lineWidth As System.Single, _
       Optional ByVal lineStyle As DashStyle _
    ) 
    public void DrawPolygon( 
       Quadrilateral quadrilateral,
       System.Drawing.Color lineColor,
       System.float lineWidth,
       DashStyle lineStyle
    )

    Parameters

    quadrilateral
    A quadrilateral specifying the polygon.
    lineColor
    The line color.
    lineWidth
    The line width.
    lineStyle
    The line style (solid by default).
    See Also