## AddRectangle(Rectangle) {#addrectangle}

Adds a rectangle to this path.

```csharp
public void AddRectangle(Rectangle rect)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rect | Rectangle | A Rectangle that represents the rectangle to add. |

### See Also

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

---

## AddRectangle(RectangleF) {#addrectangle_1}

Adds a rectangle to this path.

```csharp
public void AddRectangle(RectangleF rect)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rect | RectangleF | A RectangleF that represents the rectangle to add. |

### See Also

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


