public static void WriteLineFormatted(
string text,
TextFormat textFormat,
TextFormat? reset = null
)
Public Shared Sub WriteLineFormatted (
text As String,
textFormat As TextFormat,
Optional reset As TextFormat? = Nothing
)
Dim text As String
Dim textFormat As TextFormat
Dim reset As TextFormat?
VirtualTerminal.WriteLineFormatted(text, textFormat,
reset)
public:
static void WriteLineFormatted(
String^ text,
TextFormat textFormat,
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 output 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.