ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi Namespace / Region Class / CreateRoundedRectangleRegion Method
A System.Drawing.Rectangle structure that defines the interior of the new Region object.
Specifies the width of the ellipse used to create the rounded corners in logical units.
Specifies the height of the ellipse used to create the rounded corners in logical units.

In This Topic
    CreateRoundedRectangleRegion Method
    In This Topic
    Creates a rectangular Region with rounded corners.
    Syntax
    'Declaration
     
    
    Public Shared Function CreateRoundedRectangleRegion( _
       ByVal rectangle As Rectangle, _
       ByVal ellipseWidth As Integer, _
       ByVal ellipseHeight As Integer _
    ) As Region
    public static Region CreateRoundedRectangleRegion( 
       Rectangle rectangle,
       int ellipseWidth,
       int ellipseHeight
    )

    Parameters

    rectangle
    A System.Drawing.Rectangle structure that defines the interior of the new Region object.
    ellipseWidth
    Specifies the width of the ellipse used to create the rounded corners in logical units.
    ellipseHeight
    Specifies the height of the ellipse used to create the rounded corners in logical units.

    Return Value

    A Region indicates the region with rounded corners.
    See Also