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

GdiGraphics.FillRectangle Method (Brush, Rectangle)

Fill a rectangle.

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

Syntax

Visual Basic
Public Sub FillRectangle ( _
	brush As Brush, _
	rect As Rectangle _
)
C#
public void FillRectangle(
	Brush brush,
	Rectangle rect
)

Parameters

brush

Type: Aurigma.GraphicsMill.Drawing.Brush

Brush object which is used to fill a rectangle.
rect

Type: System.Drawing.Rectangle

The Rectangle object to draw.

Remarks

To outline a rectangle, use DrawRectangle(Pen, Rectangle) method.

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

See Also

Reference