Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: ConsoleColoredString(FormattableString, ConsoleColor?, ConsoleColor?)

Declaration

public ConsoleColoredString(
    FormattableString value,
    ConsoleColor? foreground = null,
    ConsoleColor? background = null
)

Summary

Constructs a ConsoleColoredString from the specified FormattableString.

Parameters

FormattableStringvalue 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.