## GraphicsPath::AddPath method


向当前对象表示的路径添加指定的路径。

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


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

## 另见

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