## XpsDocument::Add method


Adds a content element (Canvas, Path, or Glyphs).

```cpp
template<typename T> T Aspose::Page::XPS::XpsDocument::Add(T element)
```


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

| Parameter | Type | Description |
| --- | --- | --- |
| element | T | Element to be added. |

### ReturnValue

Added element.

## See Also

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