Color(character, foreground) Color(foreground, background) Color(character, foreground, background) Format(format, provider, args) IndexOf(value, startIndex, comparisonType) IndexOf(value, startIndex, count, comparisonType) Replace(oldValue, newValue, comparison) Split(separator, count, options)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Method: ConsoleColoredString Replace(string, ConsoleColoredString, StringComparison)Declarationpublic ConsoleColoredString Replace(
string oldValue,
ConsoleColoredString newValue,
StringComparison comparison = Ordinal
) Summary
Returns a new ConsoleColoredString in which every occurrence of the text in oldValue is replaced with a new colored string. Parametersstring | oldValue |
The substring to search for. | ConsoleColoredString | newValue |
The new colored string to replace every occurrence with. | StringComparison | comparison |
A string comparison to use. |
Returns
The new string after replacements. |