## StringBuilder::ToString() const method


Gets string currently contained in builder.

```cpp
String System::Text::StringBuilder::ToString() const override
```


### ReturnValue

[String](../../../system/string/) representation of builder's data.

## See Also

* Class [String](../../../system/string/)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.PDF for C++](../../../)
## StringBuilder::ToString(int, int) const method


Gets substring currently contained in builder.

```cpp
String System::Text::StringBuilder::ToString(int startIndex, int length) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| startIndex | int | Extraction range beginning index. |
| length | int | Number of characters to extract. |

### ReturnValue

[String](../../../system/string/) representation of builder's data subrange.

## See Also

* Class [String](../../../system/string/)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.PDF for C++](../../../)
