## StringBuilder::Replace(const String\&, const String\&) method


Replaces substring through the builder.

```cpp
StringBuilder * System::Text::StringBuilder::Replace(const String &oldString, const String &newString)
```


| Parameter | Type | Description |
| --- | --- | --- |
| oldString | const String\& | [String](../../../system/string/) to replace. |
| newString | const String\& | Replacement string. |

### ReturnValue

This pointer.

## See Also

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


Replaces substring through the builder's range.

```cpp
StringBuilder * System::Text::StringBuilder::Replace(const String &oldString, const String &newString, int position, int count)
```


| Parameter | Type | Description |
| --- | --- | --- |
| oldString | const String\& | [String](../../../system/string/) to replace. |
| newString | const String\& | Replacement string. |
| position | int | Builder's replacement range beginning position. |
| count | int | Builder's replacement range length. |

### ReturnValue

This pointer.

## See Also

* Class [StringBuilder](../)
* Class [String](../../../system/string/)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.PUB for C++](../../../)
## StringBuilder::Replace(char_t, char_t) method


Replaces character through the builder.

```cpp
StringBuilder * System::Text::StringBuilder::Replace(char_t oldChar, char_t newChar)
```


| Parameter | Type | Description |
| --- | --- | --- |
| oldChar | char_t | Character to replace. |
| newChar | char_t | Replacement character. |

### ReturnValue

This pointer.

## See Also

* Class [StringBuilder](../)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.PUB for C++](../../../)
## StringBuilder::Replace(char_t, char_t, int, int) method


Replaces character through the builder's range.

```cpp
StringBuilder * System::Text::StringBuilder::Replace(char_t oldChar, char_t newChar, int startIndex, int count)
```


| Parameter | Type | Description |
| --- | --- | --- |
| oldChar | char_t | Character to replace. |
| newChar | char_t | Replacement character. |
| startIndex | int | Builder's replacement range beginning position. |
| count | int | Builder's replacement range length. |

### ReturnValue

This pointer.

## See Also

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