## XpsDocument::Insert method


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

```cpp
template<typename T> T Aspose::Page::XPS::XpsDocument::Insert(int32_t index, T element)
```


| Parameter | Description |
| --- | --- |
| T | The type of the element. |

| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | Position at which an *element*  should be inserted. |
| element | T | Element to be inserted. |

### ReturnValue

Inserted element.

## See Also

* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
