## List::set_Capacity method


Sets list capacity.

```cpp
void System::Collections::Generic::List<T>::set_Capacity(int capacity)
```


| Parameter | Type | Description |
| --- | --- | --- |
| capacity | int | Capacity to set (can't be less than current size). |

## See Also

* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
