## Graphics::FillRectangles(const SharedPtr\<Brush\>\&, const ArrayPtr\<Rectangle\>\&) method


Fills a series of rectangles using the specified brush.

```cpp
void System::Drawing::Graphics::FillRectangles(const SharedPtr<Brush> &brush, const ArrayPtr<Rectangle> &rects)
```


| Parameter | Type | Description |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | A brush to use when filling the rectangles |
| rects | const ArrayPtr\<Rectangle\>\& | [Array](../../../system/array/) of rectangles to draw |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Brush](../../brush/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Rectangle](../../rectangle/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
## Graphics::FillRectangles(const SharedPtr\<Brush\>\&, const ArrayPtr\<RectangleF\>\&) method


Fills a series of rectangles using the specified brush.

```cpp
void System::Drawing::Graphics::FillRectangles(const SharedPtr<Brush> &brush, const ArrayPtr<RectangleF> &rects)
```


| Parameter | Type | Description |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | A brush to use when filling the rectangles |
| rects | const ArrayPtr\<RectangleF\>\& | [Array](../../../system/array/) of rectangles to draw |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Brush](../../brush/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [RectangleF](../../rectanglef/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
