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

GdiGraphics.FillRectangle Method (Brush, RectangleF)

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 RectangleF _
)
C#
public void FillRectangle(
	Brush brush,
	RectangleF rect
)

Parameters

brush

Type: Aurigma.GraphicsMill.Drawing.Brush

Brush object which is used to fill a rectangle.
rect

Type: System.Drawing.RectangleF

The RectangleF object to draw.

Remarks

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

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

See Also

Reference