## XpsCanvas::InsertPath method


Inserts a new path to this canvas's child list at *index*  position.

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


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

### ReturnValue

Inserted path.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsPath](../../xpspath/)
* Class [XpsPathGeometry](../../xpspathgeometry/)
* Class [XpsCanvas](../)
* Namespace [Aspose::Page::XPS::XpsModel](../../)
* Library [Aspose.Page for C++](../../../)
