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