## StringBuilder::set_Capacity method


Sets current capacity of string builder.

```cpp
void System::Text::StringBuilder::set_Capacity(int capacity)
```


| Parameter | Type | Description |
| --- | --- | --- |
| capacity | int | Maximum number of characters that can be contained in the memory allocated by the current instance. |

## See Also

* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.PDF for C++](../../../)
