Skip to content
ConsoleMonster

API Reference

Class

LiveTableFluent

Namespace ConsoleMonster.Widgets
Assembly ConsoleMonster
Modifiers static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of LiveTable, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • Object
  • LiveTableFluent

Methods

public static LiveTable WithMaxRows(LiveTable liveTable, Int32 value) #
Returns: LiveTable

Sets LiveTable.MaxRows: Keeps only the most recently added rows (0, the default, keeps them all): a bounded "recent N" window.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable requiredposition: 0
The instance.
value System.Int32 requiredposition: 1
The value.

Returns

The same instance.

public static LiveTable WithSortColumn(LiveTable liveTable, Int32? value) #
Returns: LiveTable

Sets LiveTable.SortColumn: The column index to keep rows sorted by, or null (default) for insertion order.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable requiredposition: 0
The instance.
value System.Int32? requiredposition: 1
The value.

Returns

The same instance.

public static LiveTable WithSortDescending(LiveTable liveTable, Boolean value = true) #
Returns: LiveTable

Sets LiveTable.SortDescending: Whether LiveTable.SortColumn sorts from the largest value down.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable requiredposition: 0
The instance.
value System.Boolean = true optionalposition: 1
The value (default true).

Returns

The same instance.

public static LiveTable WithTable(LiveTable liveTable, Action<Table> configure) #
Returns: LiveTable

Configures LiveTable.Table in place: The table that defines the columns, presenters and options.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable requiredposition: 0
The instance.
configure System.Action<ConsoleMonster.Widgets.Table> requiredposition: 1
Configures the value.

Returns

The same instance.