Skip to content

M_Ekstrand_Drawing_GraphicsExtension_RoundedRectanglePath

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

GraphicsExtension.RoundedRectanglePath Method

Returns a graphic path of 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 GraphicsPath RoundedRectanglePath(
	this Graphics graphics,
	RectangleF rectangle,
	float radius,
	BorderCorners filter
)

VB

<ExtensionAttribute>
Public Shared Function RoundedRectanglePath ( 
	graphics As Graphics,
	rectangle As RectangleF,
	radius As Single,
	filter As BorderCorners
) As GraphicsPath

C++

public:
[ExtensionAttribute]
static GraphicsPath^ RoundedRectanglePath(
	Graphics^ graphics, 
	RectangleF rectangle, 
	float radius, 
	BorderCorners filter
)

F#

[<ExtensionAttribute>]
static member RoundedRectanglePath : 
        graphics : Graphics * 
        rectangle : RectangleF * 
        radius : float32 * 
        filter : BorderCorners -> GraphicsPath 

Parameters

 

graphics
Type: System.Drawing.Graphics
An encapsulated GDI+ drawing surface instance.
rectangle
Type: System.Drawing.RectangleF
A Rectangle structure that represents the boundary to draw.
radius
Type: System.Single
The radius for each corners
filter
Type: Ekstrand.Windows.Forms.BorderCorners
The corners to have a radius

Return Value

Type: GraphicsPath
Returns a GraphicsPath of a rounded rectangle

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
Ekstrand.Drawing Namespace

Clone this wiki locally