GraphicsExtensions DrawRoundRectangle Method (Graphics, Pen, Rectangle,  Single ) FormX
Windows Forms eXtensions
Draws a rectangle with round corners.

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

<ExtensionAttribute> _
Public Shared Sub DrawRoundRectangle ( _
	g As Graphics, _
	pen As Pen, _
	rectangle As Rectangle, _
	ParamArray radius As Single() _
)

Parameters

g
Type: OnlineSystem.Drawing Graphics
The current Graphics object.
pen
Type: OnlineSystem.Drawing Pen
The Pen object which draws the border with a certain color and width.
rectangle
Type: OnlineSystem.Drawing Rectangle
The rectangle which defines the area to be drawn.
radius
Type:  OnlineSystem Single 
The radius of the different corners starting with the upper left corner.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineGraphics. 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