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
xs
intThe x size
c
charThe filled char
u
charThe not filled char
p
Placementx
inty
intf
CharFormatThe 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
xs
intThe x size
c
charThe filled char
u
charThe not filled char
p
Placementx
inty
intcf
CharFormatThe filled char format
uf
CharFormatThe 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 int 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()