UtilConsoleConsoleTextBlink(Point, Int32, Int32) Method
Blinks the specified text for the specified amount of times on the current attached console window.
The string must be smaller than the current console width buffer, or the blink effect will get buggy.
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.
No code example is currently available or this language may not be supported.
- position Point
-
A Point that indicates the start position of the text to blink.
X specifies the column, Y the row.
- length Int32
-
The length of the text (or cells) to blink.
- interval Int32
-
The blink interval, in milliseconds.
CancellationTokenSource
A
CancellationTokenSource object which you can use it to stop the blink at any time.
This is a code example.
No code example is currently available or this language may not be supported.
Dim pos As New Point(10, 2)
Dim str As String = "Hello World!"
Console.SetCursorPosition(pos.X, pos.Y)
Console.Write(str)
' Start blinking the text written.
Dim len As Integer = str.Length
Dim interval As Integer = 500
Dim blinkCt As CancellationTokenSource = ConsoleTextBlink(pos, len, interval)
' Stop blinking after 5 seconds elapsed.
blinkCt.CancelAfter(5000)
' Terminate program.
Console.ReadKey(intercept:=False)
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.