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 |
| Constructor: ConsoleColoredString(FormattableString, ConsoleColor?, ConsoleColor?)Declarationpublic ConsoleColoredString(
FormattableString value,
ConsoleColor? foreground = null,
ConsoleColor? background = null
) Summary
Constructs a ConsoleColoredString from the specified FormattableString. ParametersFormattableString | value |
Formattable string. You can use an interpolated string literal here. | ConsoleColor? | foreground |
Default foreground color when an interpolated variable isn’t a ConsoleColoredString or ConsoleColoredChar or a foreground color is unspecified. | ConsoleColor? | background |
Default background color when an interpolated variable isn’t a ConsoleColoredString or ConsoleColoredChar or a background color is unspecified. |
|