## PageAPI.Insert&lt;T&gt; method

Inserts an element (Canvas, Path, or Glyphs) to the page at *index* position.

```csharp
public T Insert<T>(int index, T element)
    where T : XpsContentElement
```

| Parameter | Description |
| --- | --- |
| T | The type of the element. |
| index | Position at which an *element* should be inserted. |
| element | Element to be inserted. |

### Return Value

Inserted element.

### See Also

* class [XpsContentElement](../../../aspose.page.xps.xpsmodel/xpscontentelement/)
* class [PageAPI](../)
* namespace [Aspose.Page.XPS.Features.EventBasedModifications](../../pageapi/)
* assembly [Aspose.Page](../../../)


