## PageAPI.InsertPath method

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

```csharp
public XpsPath InsertPath(int index, XpsPathGeometry data)
```

| Parameter | Type | Description |
| --- | --- | --- |
| index | Int32 | Position at which a new path should be inserted. |
| data | XpsPathGeometry | The geometry of the path. |

### Return Value

Inserted path.

### See Also

* class [XpsPath](../../../aspose.page.xps.xpsmodel/xpspath/)
* class [XpsPathGeometry](../../../aspose.page.xps.xpsmodel/xpspathgeometry/)
* class [PageAPI](../)
* namespace [Aspose.Page.XPS.Features.EventBasedModifications](../../pageapi/)
* assembly [Aspose.Page](../../../)


