Version

CreateRoundedRectGeometry(Rect,RoundedRectCorners,Double,Double,Double,RoundedRectSide,RoundedRectSide) Method

Helper routine to create a geometry that describes a rounded rectangle. This overloads is used to return an open geometry where one or more sides are not included.
Syntax
'Declaration
 
Public Overloads Shared Function CreateRoundedRectGeometry( _
   ByVal rect As Rect, _
   ByVal roundedCorners As RoundedRectCorners, _
   ByVal radiusX As Double, _
   ByVal radiusY As Double, _
   ByVal edgeThickness As Double, _
   ByVal startSide As RoundedRectSide, _
   ByVal endSide As RoundedRectSide _
) As Geometry
public static Geometry CreateRoundedRectGeometry( 
   Rect rect,
   RoundedRectCorners roundedCorners,
   double radiusX,
   double radiusY,
   double edgeThickness,
   RoundedRectSide startSide,
   RoundedRectSide endSide
)

Parameters

rect
The rectangle that defines the size and position of the rounded rectangle
roundedCorners
An enumeration indicating which corners will be rounded
radiusX
A double that indicates the horizontal radius of the corners
radiusY
A double that indicates the vertical radius of the corners
edgeThickness
The thickness of the edge for the rectangle. If the rectangle will have a border drawn, this would typically be the thickness of the pen.
startSide
The first side of the rectangle to include
endSide
The last side of the rectangle to include. To close the rect, this value must be the same as the startSide.

Return Value

A geometry that represents a rectangle with the specified rounded corners
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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