## CollectionBase::set_Capacity method


设置集合可以容纳的元素数量。

```cpp
void System::Collections::CollectionBase<T>::set_Capacity(int32_t value)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int32_t | 要设置的值。 |

## 另见

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