## PageAPI::InsertPath method


Inserts a new path to the page at *index*  position.

```cpp
System::SharedPtr<XpsModel::XpsPath> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::InsertPath(int32_t index, System::SharedPtr<XpsModel::XpsPathGeometry> data)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | Position at which a new path should be inserted. |
| data | System::SharedPtr\<XpsModel::XpsPathGeometry\> | The geometry of the path. |

### ReturnValue

Inserted path.

## See Also

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