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 ReplaceText(string, string, StringComparison)Declarationpublic 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. |