Path.Rectangle Method (RectangleF)

Creates a new Path shaped as a rectangle defined by the specified RectangleF.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public static Path Rectangle(
	RectangleF rectangle
)

Parameters

rectangle

Type: System.Drawing.RectangleF

A rectangle to create the path from.

Return Value

A new Path instance.

Remarks

Unlike DrawRectangle(RectangleF), which adds a rectangle segment to an existing path, this static method returns a new, standalone Path.

See Also

Reference