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)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectsRectangle[]Array of Rectangle structures that represent the rectangles to fill.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush 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)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectsRectangleF[]Array of Rectangle structures that represent the rectangles to fill.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush is null or rects is null.

See Also