GraphicPathExtensions AddRoundRectangle Method (GraphicsPath, PointF, SizeF,  Single ) FormX
Windows Forms eXtensions
Adds a rectangle with round corners to the current GraphicsPath.

Namespace: System.DrawingX
Assembly: Windows.Forms.Extensions (in Windows.Forms.Extensions.dll) Version: 0.2.4510.21587 (0.2.*)
Syntax

<ExtensionAttribute> _
Public Shared Function AddRoundRectangle ( _
	gp As GraphicsPath, _
	point As PointF, _
	size As SizeF, _
	ParamArray radius As Single() _
) As GraphicsPath

Parameters

gp
Type: OnlineSystem.Drawing.Drawing2D GraphicsPath
The current GraphicsPath object.
point
Type: OnlineSystem.Drawing PointF
The coordinates of the upper left corner.
size
Type: OnlineSystem.Drawing SizeF
The dimension of the rectangle.
radius
Type:  OnlineSystem Single 
The radius of the different corners starting with the upper left corner.

Return Value

The current GraphicsPath object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineGraphicsPath. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].
See Also