Graphics.FillRectangles

FillRectangles(Brush, Rectangle[])

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


FillRectangles(Brush, RectangleF[])

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