-
Notifications
You must be signed in to change notification settings - Fork 0
ProgressBar
Tyberious edited this page Aug 31, 2023
·
1 revision
The ProgressBar control allows you to create a visual progress indicator in the console.
-
Value: Gets or sets the current value of the progress bar. -
MaxValue: Sets the maximum value of the progress bar. -
XandY: Specify the coordinates for the position of the progress bar. -
ForegroundColorandBackgroundColor: Set colors for the progress bar. -
FillCharacterandEmptyCharacter: Customize the appearance of the bar. -
BarWidth: Adjust the width of the progress bar.
ProgressBar progressBar = new ProgressBar
{
X = 10,
Y = 5,
MaxValue = 100,
Value = 50,
ForegroundColor = ConsoleColor.Green,
BackgroundColor = ConsoleColor.DarkGray,
BarWidth = 20
};
progressBar.Redraw();The Redraw method is automatically run when the ProgressBar.Value property is changed