## List::set_Capacity method


设置列表容量。

```cpp
void System::Collections::Generic::List<T>::set_Capacity(int capacity)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| capacity | int | 要设置的容量（不能小于当前大小）。 |

## 另见

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