Declaration
public ConsoleColoredString ReplaceText(
string oldValue,
string newValue,
StringComparison comparison = Ordinal
)Summary
Returns a new
ConsoleColoredString in which every occurrence of the text in
oldValue is replaced with the text in
newValue colored by the color of the first
character in each match.
Parameters
| string | oldValue |
The substring to search for. |
| string | newValue |
The new string to replace every occurrence with. |
| StringComparison | comparison |
A string comparison to use. |
Returns
The new string after replacements.