像乒乓球一样左右碰撞的进度条
SwayBar
01 Syntax
Microsoft.VisualBasic.ApplicationServices.Terminal.ProgressBar.SwayBar
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | |
| buildBlankPointer | 1 | sets the atribute blankPointer with a empty string the same length that the pointer |
| ClearBar | 1 | reset the bar to its original state |
| PlacePointer | 1 | remove the previous pointer and place it in a new possition |
| Step | 2 | prints the progress bar acorrding to pointers and current direction |
| PrintMessage | 1 |
03 Members
#ctor(
Int32)Parameters
| Name | Type | Description |
|---|---|---|
length% | Int32 | 进度条的碰撞区域的字符数量宽度 |
buildBlankPointer
sets the atribute blankPointer with a empty string the same length that the pointer
Returns
A string filled with space characters
ClearBar
reset the bar to its original state
PlacePointer(
Int32, Int32)remove the previous pointer and place it in a new possition
Parameters
| Name | Type | Description |
|---|---|---|
start | Int32 | start index |
end | Int32 | end index |
Step
prints the progress bar acorrding to pointers and current direction
PrintMessage(
String)Step(
String)