This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.DrawRectangle Method (Pen, RectangleF)

Draws a rectangle.

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

Syntax

Visual Basic
Public Sub DrawRectangle ( _
	pen As Pen, _
	rect As RectangleF _
)
C#
public void DrawRectangle(
	Pen pen,
	RectangleF rect
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to outline a rectangle.
rect

Type: System.Drawing.RectangleF

The RectangleF object to draw.

Remarks

To fill a rectangle, use FillRectangle(Brush, RectangleF) method.

All the coordinates are measured in units specified with Unit property.

See Also

Reference