Skip to content

M_Ekstrand_Drawing_GraphicsExtension_FillRoundedRectangle_5

Fred Ekstrand edited this page Aug 4, 2020 · 1 revision

GraphicsExtension.FillRoundedRectangle Method (Graphics, Brush, Single, Single, Single, Single, Single)

Fills a rounded rectangle with specified parameters.

Namespace: Ekstrand.Drawing
Assembly: GroupBox (in GroupBox.dll) Version: 1.0.1.0 (1.0.1.0)

Syntax

C#

public static void FillRoundedRectangle(
	this Graphics graphics,
	Brush brush,
	float x,
	float y,
	float width,
	float height,
	float radius
)

VB

<ExtensionAttribute>
Public Shared Sub FillRoundedRectangle ( 
	graphics As Graphics,
	brush As Brush,
	x As Single,
	y As Single,
	width As Single,
	height As Single,
	radius As Single
)

C++

public:
[ExtensionAttribute]
static void FillRoundedRectangle(
	Graphics^ graphics, 
	Brush^ brush, 
	float x, 
	float y, 
	float width, 
	float height, 
	float radius
)

F#

[<ExtensionAttribute>]
static member FillRoundedRectangle : 
        graphics : Graphics * 
        brush : Brush * 
        x : float32 * 
        y : float32 * 
        width : float32 * 
        height : float32 * 
        radius : float32 -> unit 

Parameters

 

graphics
Type: System.Drawing.Graphics
An encapsulated GDI+ drawing surface instance.
brush
Type: System.Drawing.Brush
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
x
Type: System.Single
The x-coordinate of the upper-left corner of the rectangle to draw.
y
Type: System.Single
The y-coordinate of the upper-left corner of the rectangle to draw.
width
Type: System.Single
Width of the rectangle to draw.
height
Type: System.Single
Height of the rectangle to draw.
radius
Type: System.Single
The radius for each corners

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Graphics. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

GraphicsExtension Class
FillRoundedRectangle Overload
Ekstrand.Drawing Namespace

Clone this wiki locally