Class SimpleProgress
Simple progress bar with and without percentage support
Inheritance
Namespace
Syntax
public class SimpleProgress : SimpleCyclicWriter
Constructors
SimpleProgress(int, int)
Makes a new instance of simple progress bar
Declaration
public SimpleProgress(int position, int maxPosition)
Parameters
| Name | Type | Description |
|---|---|---|
| position | int | Current position |
| maxPosition | int | Max position |
Properties
Accurate
Specifies whether the progress bar uses unicode block characters to accurately describe progress or not.
Remarks
If Indeterminate is true, this won't be applied.
Property Value
Declaration
public bool Accurate { get; set; }
Height
Height of the vertical progress bar
Property Value
Declaration
public int Height { get; set; }
Indeterminate
Specifies whether the progress is indeterminate
Property Value
Declaration
public bool Indeterminate { get; set; }
Position
Position of the progress bar
Property Value
Declaration
public int Position { get; set; }
ProgressActiveForegroundColor
Progress active foreground
Property Value
Declaration
public Color ProgressActiveForegroundColor { get; set; }
ProgressBackgroundColor
Progress background
Property Value
Declaration
public Color ProgressBackgroundColor { get; set; }
ProgressFailedActiveForegroundColor
Progress failed active foreground
Property Value
Declaration
public Color ProgressFailedActiveForegroundColor { get; set; }
ProgressFailedForegroundColor
Progress failed foreground
Property Value
Declaration
public Color ProgressFailedForegroundColor { get; set; }
ProgressForegroundColor
Progress foreground
Property Value
Declaration
public Color ProgressForegroundColor { get; set; }
ProgressHorizontalActiveTrackChar
Progress horizontal active track character for drawing
Remarks
If Accurate is enabled, this property is ignored.
Property Value
Declaration
public char ProgressHorizontalActiveTrackChar { get; set; }
ProgressHorizontalInactiveTrackChar
Progress horizontal inactive track character for drawing
Remarks
If Accurate is enabled, this property is ignored.
Property Value
Declaration
public char ProgressHorizontalInactiveTrackChar { get; set; }
ProgressPausedActiveForegroundColor
Progress paused active foreground
Property Value
Declaration
public Color ProgressPausedActiveForegroundColor { get; set; }
ProgressPausedForegroundColor
Progress paused foreground
Property Value
Declaration
public Color ProgressPausedForegroundColor { get; set; }
ProgressPercentageTextColor
Progress percentage text color
Property Value
Declaration
public Color ProgressPercentageTextColor { get; set; }
ProgressUncoloredHorizontalActiveTrackChar
Progress horizontal active track character for drawing (uncolored)
Remarks
If Accurate is enabled, this property is ignored.
Property Value
Declaration
public char ProgressUncoloredHorizontalActiveTrackChar { get; set; }
ProgressUncoloredHorizontalInactiveTrackChar
Progress horizontal inactive track character for drawing (uncolored)
Remarks
If Accurate is enabled, this property is ignored.
Property Value
Declaration
public char ProgressUncoloredHorizontalInactiveTrackChar { get; set; }
ProgressUncoloredVerticalActiveTrackChar
Progress vertical active track character for drawing (uncolored)
Remarks
If Accurate is enabled, this property is ignored.
Property Value
Declaration
public char ProgressUncoloredVerticalActiveTrackChar { get; set; }
ProgressUncoloredVerticalInactiveTrackChar
Progress vertical inactive track character for drawing (uncolored)
Remarks
If Accurate is enabled, this property is ignored.
Property Value
Declaration
public char ProgressUncoloredVerticalInactiveTrackChar { get; set; }
ProgressVerticalActiveTrackChar
Progress vertical active track character for drawing
Remarks
If Accurate is enabled, this property is ignored.
Property Value
Declaration
public char ProgressVerticalActiveTrackChar { get; set; }
ProgressVerticalInactiveTrackChar
Progress vertical inactive track character for drawing
Remarks
If Accurate is enabled, this property is ignored.
Property Value
Declaration
public char ProgressVerticalInactiveTrackChar { get; set; }
ProgressWarningActiveForegroundColor
Progress warning active foreground
Property Value
Declaration
public Color ProgressWarningActiveForegroundColor { get; set; }
ProgressWarningForegroundColor
Progress warning foreground
Property Value
Declaration
public Color ProgressWarningForegroundColor { get; set; }
ShowPercentage
Specifies whether the progress bar shows percentage or not (ignored in indeterminate progress bars)
Property Value
Declaration
public bool ShowPercentage { get; set; }
State
State of the progress bar
UseColors
Whether to use colors or not
Property Value
Declaration
public bool UseColors { get; set; }
Vertical
Specifies whether the progress bar is vertical or horizontal
Property Value
Declaration
public bool Vertical { get; set; }
Width
Width of the progress bar
Property Value
Declaration
public int Width { get; set; }
Methods
Render()
Renders a scrolling text progress bar
Returns
The result
Declaration
public override string Render()