## List::operator[](int) method


Accessor function.

```cpp
vector_t::reference System::Collections::Generic::List<T>::operator[](int index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int | Index to get element from. |

### ReturnValue

Reference to element at specified position.

## See Also

* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## List::operator[](int) const method


Accessor function.

```cpp
vector_t::const_reference System::Collections::Generic::List<T>::operator[](int index) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int | Index to get element from. |

### ReturnValue

Const reference to element at specified position.

## See Also

* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
