This documentation is archived and is not being maintained.

ActivityDesignerPaint.GetRoundedRectanglePath Method

Returns the graphics path used to draw the specified rounded rectangle.

Namespace:  System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public static GraphicsPath GetRoundedRectanglePath(
	Rectangle rectangle,
	int radius


Type: System.Drawing.Rectangle

The Rectangle for which to obtain the graphics path.

Type: System.Int32

An integer that defines the radius to use to draw the rounded corners.

Return Value

Type: System.Drawing.Drawing2D.GraphicsPath
A GraphicsPath that draws the rounded path of the specified rectangle.


rectangle is set to IsEmpty.

-- or --

radius is less than or equal to 0.

The DrawRoundedRectangle method uses GetRoundedRectanglePath to obtain the path to draw.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0