## GraphicsPath::AddRectangle(const Rectangle\&) method


Adds the specified rectangle to the path represented by the current object.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddRectangle(const Rectangle &rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | const Rectangle\& | A rectangle to add |

## See Also

* Class [Rectangle](../../../system.drawing/rectangle/)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.PDF for C++](../../../)
## GraphicsPath::AddRectangle(const RectangleF\&) method


Adds the specified rectangle to the path represented by the current object.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddRectangle(const RectangleF &rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | const RectangleF\& | A rectangle to add |

## See Also

* Class [RectangleF](../../../system.drawing/rectanglef/)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.PDF for C++](../../../)
