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 Color(char, ConsoleColor?)Declarationpublic ConsoleColoredString Color(
char character,
ConsoleColor? foreground
)Summary
Changes the foreground colors (but not the background colors) of every occurrence of character
in the current string to the specified console color. Parameters| char | character |
The character whose color to replace. | | ConsoleColor? | foreground |
The foreground color to set the characters to, or null to use the console’s default foreground color. |
Returns
A new string containing the modified colors. |