---
title: "System::Collections::Generic::List::get_Capacity method"
url: "https://reference.aspose.com/tex/cpp/system.collections.generic/list/get_capacity/"
product: "Aspose.TeX for C++"
description: "System::Collections::Generic::List::get_Capacity method. Gets current list capacity in C++."
---

## List::get_Capacity method


Gets current list capacity.

```cpp
int System::Collections::Generic::List<T>::get_Capacity() const
```


### ReturnValue

Capacity (not size) of the list.

## See Also

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