Class
ProgressPresenter
ConsoleMonster.Presenters
Progress as a small bar and a fraction: ━━━━━──── 18/30. Accepts a fraction (0-1), a percentage string (64%) or a done/total string (18/30).
Inheritance
- object
- ProgressPresenter
Constructors
public ProgressPresenter(int barWidth = 8) #Creates a progress presenter.
Parameters
- barWidth int = 8
- Cells the bar would like (default 8).
Methods
public PresentedValue Present(object? value, PresenterContext context) #Presents a value.
Parameters
- value object?
- The raw value (may be null).
- context ConsoleMonster.Presenters.PresenterContext
- Culture, clock, time zone, column statistics and the render context.