Declaration
public static void WriteLine(
FormattableString value,
ConsoleColor? foreground = null,
ConsoleColor? background = null,
bool stdErr = false,
HorizontalTextAlignment align = HorizontalTextAlignment.Left
)
Summary
Writes the specified
FormattableString to the console.
Parameters
FormattableString | 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. |
bool | stdErr | true to print to Standard Error instead of Standard Output. |
HorizontalTextAlignment | align |
Horizontal alignment of the string within the remaining space of the current line. If the string does not fit,
it will be printed as if left-aligned. |