---
title: "GraphicsPath.AddRectangles"
url: "https://reference.aspose.com/drawing/net/aspose.drawing.drawing2d/graphicspath/addrectangles/"
product: "Aspose.Drawing for .NET API Reference"
description: "GraphicsPath method. Adds a series of rectangles to this path"
---

## AddRectangles(RectangleF[]) {#addrectangles}

Adds a series of rectangles to this path.

```csharp
public void AddRectangles(RectangleF[] rects)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rects | RectangleF[] | An array of RectangleF structures that represents the rectangles to add. |

### See Also

* struct [RectangleF](../../../aspose.drawing/rectanglef/)
* class [GraphicsPath](../)
* namespace [Aspose.Drawing.Drawing2D](../../graphicspath/)
* assembly [Aspose.Drawing.Common](../../../)

---

## AddRectangles(Rectangle[]) {#addrectangles_1}

Adds a series of rectangles to this path.

```csharp
public void AddRectangles(Rectangle[] rects)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rects | Rectangle[] | An array of Rectangle structures that represents the rectangles to add. |

### See Also

* struct [Rectangle](../../../aspose.drawing/rectangle/)
* class [GraphicsPath](../)
* namespace [Aspose.Drawing.Drawing2D](../../graphicspath/)
* assembly [Aspose.Drawing.Common](../../../)


