## Graphics::DrawRectangles(const SharedPtr\<Pen\>\&, const ArrayPtr\<Rectangle\>\&) method


使用指定的笔绘制一系列矩形。

```cpp
void System::Drawing::Graphics::DrawRectangles(const SharedPtr<Pen> &pen, const ArrayPtr<Rectangle> &rects)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 绘制矩形时使用的笔 |
| rects | const ArrayPtr\<Rectangle\>\& | [Array](../../../system/array/) 用于绘制的矩形数组 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Rectangle](../../rectangle/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawRectangles(const SharedPtr\<Pen\>\&, const ArrayPtr\<RectangleF\>\&) method


使用指定的笔绘制一系列矩形。

```cpp
void System::Drawing::Graphics::DrawRectangles(const SharedPtr<Pen> &pen, const ArrayPtr<RectangleF> &rects)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 绘制矩形时使用的笔 |
| rects | const ArrayPtr\<RectangleF\>\& | [Array](../../../system/array/) 用于绘制的矩形数组 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [RectangleF](../../rectanglef/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
