## XpsArray class


Class incapsulating common [XPS](../../aspose.page.xps/) model array object features.

```cpp
template<typename T>class XpsArray : public Aspose::Page::XPS::XpsModel::XpsObject
```


| Parameter | Description |
| --- | --- |
| T | The type of array elements. |
## Methods

| Method | Description |
| --- | --- |
| [Add](./add/)(T) | Adds a new object into array. |
| [get_Count](./get_count/)() | Returns number of elements. |
| [idx_get](./idx_get/)(int32_t) | Provides access to array's element by index *i* . |
| [Insert](./insert/)(int32_t, T) | Inserts a new object into array at specified position. |
| [Remove](./remove/)(T) | Removes an object from array. |
| [RemoveAt](./removeat/)(int32_t) | Removes an object from array at specified position. |
| [SetTemplateWeakPtr](./settemplateweakptr/)(uint32_t) override | Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. |

## See Also

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