Class TuiProgressBar
- Namespace
- AshConsoleGraphics
- Assembly
- AshConsoleGraphics.dll
A progress bar with a percentage of filled
public class TuiProgressBar : TuiElement
- Inheritance
-
TuiProgressBar
- Inherited Members
Constructors
TuiProgressBar(int, char, char, Placement, int, int, CharFormat?)
Initializes a new progress bar with the same format for filled and not filled
public TuiProgressBar(int xs, char c, char u, Placement p, int x, int y, CharFormat? f = null)
Parameters
xsintThe x size
ccharThe filled char
ucharThe not filled char
pPlacementxintyintfCharFormatThe format
TuiProgressBar(int, char, char, Placement, int, int, CharFormat?, CharFormat?)
Initializes a new progress bar
public TuiProgressBar(int xs, char c, char u, Placement p, int x, int y, CharFormat? cf, CharFormat? uf)
Parameters
xsintThe x size
ccharThe filled char
ucharThe not filled char
pPlacementxintyintcfCharFormatThe filled char format
ufCharFormatThe not filled char format
Properties
CompleteChar
The char of the filled part
public char CompleteChar { get; set; }
Property Value
CompleteFormat
Complete Charachter format
public CharFormat? CompleteFormat { get; set; }
Property Value
IncompleteChar
The char of the not filled part
public char IncompleteChar { get; set; }
Property Value
IncompleteFormat
Incomplete Charachter format
public CharFormat? IncompleteFormat { get; set; }
Property Value
Percentage
The percentage of the bar that is filled
public float Percentage { get; set; }
Property Value
Xsize
public int Xsize { get; set; }
Property Value
Methods
GenerateBuffer()
The method that generates the element's buffer
protected override Buffer GenerateBuffer()