Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / IDrawingContext Interface / DrawRoundedRectangle Method
The brush used to fill the rectangle.
The pen used to stroke the rectangle.
The rectangle to draw.
The radius in the X dimension of the rounded corners. This value will be clamped to the range of 0 to Rect.Width/2.
The radius in the Y dimension of the rounded corners. This value will be clamped to a value between 0 to Rect.Height/2.


In This Topic
    DrawRoundedRectangle Method (IDrawingContext)
    In This Topic
    Draws a rounded rectangle with the specified Brush and Pen.
    Syntax
    'Declaration
     
    
    Sub DrawRoundedRectangle( _
       ByVal brush As Brush, _
       ByVal pen As Pen, _
       ByVal rect As Rectangle, _
       ByVal radiusX As Double, _
       ByVal radiusY As Double _
    ) 
    'Usage
     
    
    Dim instance As IDrawingContext
    Dim brush As Brush
    Dim pen As Pen
    Dim rect As Rectangle
    Dim radiusX As Double
    Dim radiusY As Double
     
    instance.DrawRoundedRectangle(brush, pen, rect, radiusX, radiusY)
    void DrawRoundedRectangle( 
       Brush brush,
       Pen pen,
       Rectangle rect,
       double radiusX,
       double radiusY
    )

    Parameters

    brush
    The brush used to fill the rectangle.
    pen
    The pen used to stroke the rectangle.
    rect
    The rectangle to draw.
    radiusX
    The radius in the X dimension of the rounded corners. This value will be clamped to the range of 0 to Rect.Width/2.
    radiusY
    The radius in the Y dimension of the rounded corners. This value will be clamped to a value between 0 to Rect.Height/2.
    See Also