FillRectangles

Graphics.FillRectangles method (1 of 2)

Fills the interiors of a series of rectangles specified by Rectangle structures.

public void FillRectangles(Brush brush, Rectangle[] rects)
Parameter Type Description
brush Brush Brush that determines the characteristics of the fill.
rects Rectangle[] Array of Rectangle structures that represent the rectangles to fill.

Exceptions

exception condition
ArgumentNullException brush is null or rects is null.

See Also


Graphics.FillRectangles method (2 of 2)

Fills the interiors of a series of rectangles specified by RectangleF structures.

public void FillRectangles(Brush brush, RectangleF[] rects)
Parameter Type Description
brush Brush Brush that determines the characteristics of the fill.
rects RectangleF[] Array of Rectangle structures that represent the rectangles to fill.

Exceptions

exception condition
ArgumentNullException brush is null or rects is null.

See Also