Documents for Imaging .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawRoundRect Method / DrawRoundRect(RectangleF,Single,Single,Color,Single,Single[]) Method
A System.Drawing.RectangleF structure that represents the rectangle to draw.
The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
The color of lines used to draw the rounded rectangle.
The width of lines used to draw the rounded rectangle.
The dash pattern lines used to draw the rounded rectangle.

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

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

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

    Parameters

    bounds
    A System.Drawing.RectangleF structure that represents the rectangle to draw.
    radiusX
    The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
    radiusY
    The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
    lineColor
    The color of lines used to draw the rounded rectangle.
    lineWidth
    The width of lines used to draw the rounded rectangle.
    dashPattern
    The dash pattern lines used to draw the rounded rectangle.
    See Also