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.
Namespace: DevCase.Core.Application.ConsoleAssembly: 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
)
Public Shared Sub WriteColorText (
text As String,
delimiters As Char(),
Optional keepCursorPosition As Boolean = false
)
Dim text As String
Dim delimiters As Char()
Dim keepCursorPosition As Boolean
UtilConsole.WriteColorText(text, delimiters,
keepCursorPosition)
public:
static void WriteColorText(
String^ text,
array<wchar_t>^ delimiters,
bool keepCursorPosition = false
)
static member WriteColorText :
text : string *
delimiters : char[] *
?keepCursorPosition : bool
(* Defaults:
let _keepCursorPosition = defaultArg keepCursorPosition false
*)
-> unit
No code example is currently available or this language may not be supported.
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:
This is a code example.
No code example is currently available or this language may not be supported.
WriteColorText("*F10*Hello *F14*World!*-F*", {"*"c})
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.