## XpsDocument::AddPath method


Adds a new path to the active page.

```cpp
System::SharedPtr<XpsModel::XpsPath> Aspose::Page::XPS::XpsDocument::AddPath(System::SharedPtr<XpsModel::XpsPathGeometry> data)
```


| Parameter | Type | Description |
| --- | --- | --- |
| data | System::SharedPtr\<XpsModel::XpsPathGeometry\> | The geometry of the path. |

### ReturnValue

Added path.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsPath](../../../aspose.page.xps.xpsmodel/xpspath/)
* Class [XpsPathGeometry](../../../aspose.page.xps.xpsmodel/xpspathgeometry/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
