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.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also