## XpsDocument::InsertCanvas method


Inserts a new canvas to the active page at *index*  position.

```cpp
System::SharedPtr<XpsModel::XpsCanvas> Aspose::Page::XPS::XpsDocument::InsertCanvas(int32_t index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | Position at which a new canvas should be inserted. |

### ReturnValue

Inserted canvas.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsCanvas](../../../aspose.page.xps.xpsmodel/xpscanvas/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
