API Reference
Class
ProgressPresenter
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(Int32 barWidth = 8) #Creates a progress presenter.
Parameters
- barWidth System.Int32 = 8
- Cells the bar would like (default 8).
Methods
public PresentedValue Present(Object? value, PresenterContext context) #Returns:
PresentedValuePresents a value.
Parameters
- value System.Object?
- The raw value (may be null).
- context ConsoleMonster.Presenters.PresenterContext
- Culture, clock, time zone, column statistics and the render context.
Returns
The presented value.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?