GraphicsExtensions FillRoundRectangle Method (Graphics, Brush, RectangleF,  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, _
	rectangle As RectangleF, _
	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.
rectangle
Type: OnlineSystem.Drawing RectangleF
The rectangle which defines the area to be filled.
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