---
title: "System::Collections::Generic::List::GetEnumerator method"
url: "https://reference.aspose.com/tex/cpp/system.collections.generic/list/getenumerator/"
product: "Aspose.TeX for C++"
description: "System::Collections::Generic::List::GetEnumerator method. Gets enumerator to iterate through list elements in C++."
---

## List::GetEnumerator method


Gets enumerator to iterate through list elements.

```cpp
IEnumeratorPtr System::Collections::Generic::List<T>::GetEnumerator() override
```


### ReturnValue

Pointer to newly created enumerator.

## See Also

* Typedef [IEnumeratorPtr](../ienumeratorptr/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.TeX for C++](../../../)
