## DrawRectangles(Pen, RectangleF[]) {#drawrectangles}

Draws a series of rectangles specified by RectangleF structures.

```csharp
public void DrawRectangles(Pen pen, RectangleF[] rects)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pen | Pen | Pen that determines the color, width, and style of the outlines of the rectangles. |
| rects | RectangleF[] | Array of RectangleF structures that represent the rectangles to draw. |

### See Also

* class [Pen](../../pen/)
* struct [RectangleF](../../rectanglef/)
* class [Graphics](../)
* namespace [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)

---

## DrawRectangles(Pen, Rectangle[]) {#drawrectangles_1}

Draws a series of rectangles specified by Rectangle structures.

```csharp
public void DrawRectangles(Pen pen, Rectangle[] rects)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pen | Pen | Pen that determines the color, width, and style of the outlines of the rectangles. |
| rects | Rectangle[] | Array of Rectangle structures that represent the rectangles to draw. |

### See Also

* class [Pen](../../pen/)
* struct [Rectangle](../../rectangle/)
* class [Graphics](../)
* namespace [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)


