Class ProgressBarNoText
Progress bar without text
Inheritance
Implements
Namespace: Terminaux.Writer.CyclicWriters
Assembly: Terminaux.dll
Syntax
public class ProgressBarNoText : IStaticRenderable
Constructors
| Edit this page View SourceProgressBarNoText(int, int, Spinner?)
Makes a new instance of progress bar
Declaration
public ProgressBarNoText(int position, int maxPosition, Spinner? progressSpinner = null)
Parameters
Type | Name | Description |
---|---|---|
int | position | Current position |
int | maxPosition | Max position |
Spinner | progressSpinner | Spinner instance to use, or Dots |
Properties
| Edit this page View SourceIndeterminate
Specifies whether the progress is indeterminate
Declaration
public bool Indeterminate { get; set; }
Property Value
Type | Description |
---|---|
bool |
LeftMargin
Left margin of the progress bar
Declaration
public int LeftMargin { get; set; }
Property Value
Type | Description |
---|---|
int |
Position
Position of the progress bar
Declaration
public int Position { get; set; }
Property Value
Type | Description |
---|---|
int |
ProgressActiveForegroundColor
Progress active foreground
Declaration
public Color ProgressActiveForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ProgressBackgroundColor
Progress background
Declaration
public Color ProgressBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ProgressForegroundColor
Progress foreground
Declaration
public Color ProgressForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ProgressHorizontalActiveTrackChar
Progress horizontal active track character for drawing
Declaration
public char ProgressHorizontalActiveTrackChar { get; set; }
Property Value
Type | Description |
---|---|
char |
ProgressHorizontalInactiveTrackChar
Progress horizontal inactive track character for drawing
Declaration
public char ProgressHorizontalInactiveTrackChar { get; set; }
Property Value
Type | Description |
---|---|
char |
ProgressPercentageTextColor
Progress percentage text color
Declaration
public Color ProgressPercentageTextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ProgressSpinnerTextColor
Progress spinner color
Declaration
public Color ProgressSpinnerTextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ProgressVerticalActiveTrackChar
Progress vertical active track character for drawing
Declaration
public char ProgressVerticalActiveTrackChar { get; set; }
Property Value
Type | Description |
---|---|
char |
ProgressVerticalInactiveTrackChar
Progress vertical inactive track character for drawing
Declaration
public char ProgressVerticalInactiveTrackChar { get; set; }
Property Value
Type | Description |
---|---|
char |
RightMargin
Right margin of the progress bar
Declaration
public int RightMargin { get; set; }
Property Value
Type | Description |
---|---|
int |
ShowPercentage
Specifies whether the progress bar shows percentage or not (ignored in indeterminate progress bars)
Declaration
public bool ShowPercentage { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseColors
Whether to use colors or not
Declaration
public bool UseColors { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceRender()
Renders a scrolling text progress bar
Declaration
public string Render()
Returns
Type | Description |
---|---|
string | The result |