Skip to content
ConsoleMonster

API Reference

Class

ProgressPresenter

Namespace ConsoleMonster.Presenters
Assembly ConsoleMonster
Implements
Modifiers sealed

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 optionalposition: 0
Cells the bar would like (default 8).

Methods

public PresentedValue Present(Object? value, PresenterContext context) #
Returns: PresentedValue

Presents a value.

Parameters

value System.Object? requiredposition: 0
The raw value (may be null).
context ConsoleMonster.Presenters.PresenterContext requiredposition: 1
Culture, clock, time zone, column statistics and the render context.

Returns

The presented value.

Properties

public Int32 BarWidth { get; } #

Cells the bar would like.