ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / 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 System.Drawing.Rectangle, _
       ByVal width As System.Integer, _
       ByVal height As System.Integer _
    ) 
    public virtual void PaintRoundRectangle( 
       System.Drawing.Rectangle rectangle,
       System.int width,
       System.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