Documents for Imaging .NET Edition | GCDocuments
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawRectangle Method / DrawRectangle(RectangleF,Color,Single,Single[]) Method
A System.Drawing.RectangleF structure that represents the rectangle to draw.
The color of lines used to draw the rectangle.
The width of lines used to draw the rectangle.
The dash pattern lines used to draw the rectangle.

In This Topic
    DrawRectangle(RectangleF,Color,Single,Single[]) Method
    In This Topic
    Draws a rectangle using a specified line color, width and dash pattern.

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

    Syntax
    'Declaration
     
    Public Overloads Sub DrawRectangle( _
       ByVal bounds As System.Drawing.RectangleF, _
       ByVal lineColor As System.Drawing.Color, _
       ByVal lineWidth As System.Single, _
       ByVal dashPattern() As System.Single _
    ) 
    public void DrawRectangle( 
       System.Drawing.RectangleF bounds,
       System.Drawing.Color lineColor,
       System.float lineWidth,
       System.float[] dashPattern
    )

    Parameters

    bounds
    A System.Drawing.RectangleF structure that represents the rectangle to draw.
    lineColor
    The color of lines used to draw the rectangle.
    lineWidth
    The width of lines used to draw the rectangle.
    dashPattern
    The dash pattern lines used to draw the rectangle.
    See Also