Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: void WriteFmt(FormattableString, ConsoleColor?, ConsoleColor?, bool)

Declaration

public static void WriteFmt(
    FormattableString value,
    ConsoleColor? foreground = null,
    ConsoleColor? background = null,
    bool stdErr = false
)

Summary

Writes the specified FormattableString followed by a newline to the console with console-colored formatting strings enabled (see remarks at ConsoleUtil.WriteLineFmt(FormattableString, ConsoleColor?, ConsoleColor?, bool, HorizontalTextAlignment)).

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.
boolstdErrtrue to print to Standard Error instead of Standard Output.