## StringBuilder::set_Capacity method


设置字符串构建器的当前容量。

```cpp
void System::Text::StringBuilder::set_Capacity(int capacity)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| capacity | int | 当前实例分配的内存中可容纳的最大字符数。 |

## 另见

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