ComponentOne CalendarView for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / PaintRoundRectangle Method
A System.Drawing.Rectangle indicates the rectangle to paint.
An int indicates the width of the ellipse used to draw the rounded corners.
An int indicates the height of the ellipse used to draw the rounded corners.

In This Topic
    PaintRoundRectangle Method
    In This Topic
    Paints a rectangle with rounded corners. The rectangle is outlined by using the current pen and filled by using the current brush.
    Syntax
    'Declaration
     
    
    Public Overridable Sub PaintRoundRectangle( _
       ByVal rectangle As Rectangle, _
       ByVal width As Integer, _
       ByVal height As Integer _
    ) 
    public virtual void PaintRoundRectangle( 
       Rectangle rectangle,
       int width,
       int height
    )

    Parameters

    rectangle
    A System.Drawing.Rectangle indicates the rectangle to paint.
    width
    An int indicates the width of the ellipse used to draw the rounded corners.
    height
    An int indicates the height of the ellipse used to draw the rounded corners.
    Exceptions
    ExceptionDescription
    Defines an exception class to handle the system error.
    Remarks
    Windows 95/98/Me: The sum of the coordinates of the bounding rectangle cannot exceed 32,767. The width of rectangle or the height of rectangle cannot exceed 32,767.
    See Also