Table of Contents

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 int

The x size

c char

The filled char

u char

The not filled char

p Placement
x int
y int
f CharFormat

The 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 int

The x size

c char

The filled char

u char

The not filled char

p Placement
x int
y int
cf CharFormat

The filled char format

uf CharFormat

The not filled char format

Properties

CompleteChar

The char of the filled part

public char CompleteChar { get; set; }

Property Value

char

CompleteFormat

Complete Charachter format

public CharFormat? CompleteFormat { get; set; }

Property Value

CharFormat

IncompleteChar

The char of the not filled part

public char IncompleteChar { get; set; }

Property Value

char

IncompleteFormat

Incomplete Charachter format

public CharFormat? IncompleteFormat { get; set; }

Property Value

CharFormat

Percentage

The percentage of the bar that is filled

public int Percentage { get; set; }

Property Value

int

Xsize

public int Xsize { get; set; }

Property Value

int

Methods

GenerateBuffer()

The method that generates the element's buffer

protected override Buffer GenerateBuffer()

Returns

Buffer