## StringBuilder::set_Length method


截断或扩展字符串构建器至指定长度。

```cpp
void System::Text::StringBuilder::set_Length(int len)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| len | int | 要设置的长度。 |

## 另见

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