## GraphicsPath::AddPath method


Adds the specified path to the path represented by the current object.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddPath(const SharedPtr<GraphicsPath> &path, bool connect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path | const SharedPtr\<GraphicsPath\>\& | The path to add |
| connect | bool | True specifies that the last first figure in the **path** is part of the last figure of the path represented by the current object; false specifies that the first figure in the **path** and the last figure in the path represented by the current object are separate figures |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [GraphicsPath](../)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.PDF for C++](../../../)
