GraphicsExtensions FillRoundRectangle Method (Graphics, Brush, PointF, SizeF,  Single ) FormX
Windows Forms eXtensions
Fills 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 FillRoundRectangle ( _
	g As Graphics, _
	brush As Brush, _
	point As PointF, _
	size As SizeF, _
	ParamArray radius As Single() _
)

Parameters

g
Type: OnlineSystem.Drawing Graphics
The current Graphics object.
brush
Type: OnlineSystem.Drawing Brush
The Brush object which fills the rectangle with colors.
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.

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