## GraphicsPath::AddPath method


将指定的路径添加到当前对象表示的路径中。

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddPath(const SharedPtr<GraphicsPath> &path, bool connect)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 路径 | const SharedPtr\<GraphicsPath\>\& | 要添加的路径 |
| 连接 | bool | True 指定 **path** 中的最后第一个图形是当前对象所表示的路径的最后一个图形的一部分；false 指定 **path** 中的第一个图形和当前对象所表示的路径的最后一个图形是独立的图形。 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [GraphicsPath](../)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.Page for C++](../../../)
