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