Skip to content

M_Ekstrand_Drawing_GraphicsExtension_FillRoundedRectangle_7

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

GraphicsExtension.FillRoundedRectangle Method (Graphics, LinearGradientBrush, Rectangle, Int32)

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,
	LinearGradientBrush brush,
	Rectangle rectangle,
	int radius
)

VB

<ExtensionAttribute>
Public Shared Sub FillRoundedRectangle ( 
	graphics As Graphics,
	brush As LinearGradientBrush,
	rectangle As Rectangle,
	radius As Integer
)

C++

public:
[ExtensionAttribute]
static void FillRoundedRectangle(
	Graphics^ graphics, 
	LinearGradientBrush^ brush, 
	Rectangle rectangle, 
	int radius
)

F#

[<ExtensionAttribute>]
static member FillRoundedRectangle : 
        graphics : Graphics * 
        brush : LinearGradientBrush * 
        rectangle : Rectangle * 
        radius : int -> unit 

Parameters

 

graphics
Type: System.Drawing.Graphics
An encapsulated GDI+ drawing surface instance.
brush
Type: System.Drawing.Drawing2D.LinearGradientBrush
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
rectangle
Type: System.Drawing.Rectangle
A Rectangle structure that represents the boundary to draw.
radius
Type: System.Int32
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