public static void WriteLineErrorFormatted(
string text,
TextFormat? textFormat = null,
TextFormat? reset = null
)
Public Shared Sub WriteLineErrorFormatted (
text As String,
Optional textFormat As TextFormat? = Nothing,
Optional reset As TextFormat? = Nothing
)
Dim text As String
Dim textFormat As TextFormat?
Dim reset As TextFormat?
VirtualTerminal.WriteLineErrorFormatted(text,
textFormat, reset)
public:
static void WriteLineErrorFormatted(
String^ text,
Nullable<TextFormat> textFormat = nullptr,
Nullable<TextFormat> reset = nullptr
)
This method takes care of checking whether VT sequences are supported by using the EnableColor(StandardStream) method, and on Windows, will reset the console mode afterwards if needed.
The textFormat and reset parameters will be ignored if the standard error stream does not support VT sequences. In that case, the value of text will be written without formatting.
This method uses the LineWrappingTextWriter to ensure that the text is properly white-space wrapped at the console width.