TypeWritterWriteColor(String, Char, Int32, Int32) Method
Writes colored text simulating a typewritter effect.
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 WriteColor(
string text,
char[] delimiters,
int typeSpeed = 75,
int pauseDuration = 400
)
Public Shared Sub WriteColor (
text As String,
delimiters As Char(),
Optional typeSpeed As Integer = 75,
Optional pauseDuration As Integer = 400
)
Dim text As String
Dim delimiters As Char()
Dim typeSpeed As Integer
Dim pauseDuration As Integer
TypeWritter.WriteColor(text, delimiters,
typeSpeed, pauseDuration)
public:
static void WriteColor(
String^ text,
array<wchar_t>^ delimiters,
int typeSpeed = 75,
int pauseDuration = 400
)
static member WriteColor :
text : string *
delimiters : char[] *
?typeSpeed : int *
?pauseDuration : int
(* Defaults:
let _typeSpeed = defaultArg typeSpeed 75
let _pauseDuration = defaultArg pauseDuration 400
*)
-> 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.
- typeSpeed Int32 (Optional)
-
The typying speed, in ms.
- pauseDuration Int32 (Optional)
-
The pause duration of the punctuation characters, in ms.
This is a code example.
No code example is currently available or this language may not be supported.
WriteColor("*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.