## StringBuilder::ToString() const method


获取当前包含在构建器中的字符串。

```cpp
String System::Text::StringBuilder::ToString() const override
```


### ReturnValue

[String](../../../system/string/) representation of builder's data.

## 另见

* Class [String](../../../system/string/)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.Font for C++](../../../)
## StringBuilder::ToString(int, int) const method


获取当前包含在构建器中的子字符串。

```cpp
String System::Text::StringBuilder::ToString(int startIndex, int length) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| startIndex | int | 提取范围的起始索引。 |
| 长度 | int | 要提取的字符数。 |

### ReturnValue

[String](../../../system/string/) representation of builder's data subrange.

## 另见

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