Version

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

Helper routine to create a geometry that describes a rounded rectangle.
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 _
) As Geometry
public static Geometry CreateRoundedRectGeometry( 
   Rect rect,
   RoundedRectCorners roundedCorners,
   double radiusX,
   double radiusY,
   double edgeThickness
)

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.

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