UtilConsoleWriteColorText(String, Char, Boolean) Method

Writes colored text on the Console.

Use *F##* as the start delimiter of the ForeColor, use *-F* as the end delimiter of the ForeColor.

Use *B##* as the start delimiter of the BackColor, use *-B* as the end delimiter of the BackColor.

Definition

Namespace: DevCase.Core.Application.Console
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void WriteColorText(
	string text,
	char[] delimiters,
	bool keepCursorPosition = false
)

Parameters

text  String
The color-delimited text to write.
delimiters  Char
A set of 1 or 2 delimiters to parse the color-delimited string.
keepCursorPosition  Boolean  (Optional)
If , holds the cursor position on its current position after writting the text.

Default value:

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also