Skip to content

M_Ekstrand_Drawing_GraphicsExtension_DrawRoundedRectangle_2

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

GraphicsExtension.DrawRoundedRectangle Method (Graphics, Pen, RectangleF, Int32)

Draws 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 DrawRoundedRectangle(
	this Graphics graphics,
	Pen pen,
	RectangleF rectangle,
	int radius
)

VB

<ExtensionAttribute>
Public Shared Sub DrawRoundedRectangle ( 
	graphics As Graphics,
	pen As Pen,
	rectangle As RectangleF,
	radius As Integer
)

C++

public:
[ExtensionAttribute]
static void DrawRoundedRectangle(
	Graphics^ graphics, 
	Pen^ pen, 
	RectangleF rectangle, 
	int radius
)

F#

[<ExtensionAttribute>]
static member DrawRoundedRectangle : 
        graphics : Graphics * 
        pen : Pen * 
        rectangle : RectangleF * 
        radius : int -> unit 

Parameters

 

graphics
Type: System.Drawing.Graphics
An encapsulated GDI+ drawing surface instance.
pen
Type: System.Drawing.Pen
Pen that determines the color, width, and style of the rectangle.
rectangle
Type: System.Drawing.RectangleF
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
DrawRoundedRectangle Overload
Ekstrand.Drawing Namespace

Clone this wiki locally