System.Drawing.Graphics.FillRectangle Method

Fills the interior of a rectangle specified by a System.Drawing.RectangleF structure.

Syntax

public void FillRectangle (Brush brush, RectangleF rect)

Parameters

brush
System.Drawing.Brush that determines the characteristics of the fill.
rect
System.Drawing.RectangleF structure that represents the rectangle to fill.

Remarks

This method fills the interior of the rectangle defined by the rect parameter, including the specified upper-left corner and up to the calculated lower and bottom edges.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0