CellMapFluent
ConsoleMonster.Widgets
The fluent methods of CellMap, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- CellMapFluent
Methods
public static CellMap Blocks(CellMap cellMap, bool value = true) #Sets CellMap.Blocks: Whether each cell is a block in its state's colour rather than its symbol (default false), for a dense strip of many items. It needs colour and the Full or Basic tier and is off for an accessible profile; otherwise the cells keep their symbols, so outcomes still read without telling colours apart. Queued cells are drawn as the empty bar track.
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.CellMap { Blocks = value }; Ui.CellMap().Blocks(value);public static CellMap Columns(CellMap cellMap, int value) #Sets CellMap.Columns: The cells per row (0 = as many as fit, the default). Set it to draw a grid, such as one row per server and one column per check; cells past the width are cut off rather than moved to the next row.
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.CellMap { Columns = value }; Ui.CellMap().Columns(value);public static CellMap Gap(CellMap cellMap, int value) #Sets CellMap.Gap: The cells between symbols (default 1).
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.CellMap { Gap = value }; Ui.CellMap().Gap(value);public static CellMap LegendLines(CellMap cellMap, int value) #Sets CellMap.LegendLines: The most lines the legend wraps onto when it is wider than the map (default 1: it is cut off instead).
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.CellMap { LegendLines = value }; Ui.CellMap().LegendLines(value);public static CellMap MaxRows(CellMap cellMap, int value) #Sets CellMap.MaxRows: The most rows of cells (0 = all); a last line then counts the items not shown.
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.CellMap { MaxRows = value }; Ui.CellMap().MaxRows(value);public static CellMap RowLabel(CellMap cellMap, string item) #Adds an item to CellMap.RowLabels: Labels drawn muted before the rows, one per row in order (empty = none, the default); the cells start after the widest label. Together with CellMap.Columns they make a labelled grid with one legend below it.
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- item string
- The item.
public static CellMap RowLabels(CellMap cellMap, IEnumerable<string> items) #Adds items to CellMap.RowLabels: Labels drawn muted before the rows, one per row in order (empty = none, the default); the cells start after the widest label. Together with CellMap.Columns they make a labelled grid with one legend below it.
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static CellMap ShowColumnLabels(CellMap cellMap, bool value = true) #Sets CellMap.ShowColumnLabels: Whether a grid built with CellMap.Cell shows its CellMap.ColumnLabels in a header row (default false). When the names fit, each column is as wide as its name and the cell sits under it; when they do not, the columns are numbered and a key line below the map names them ("1 DC01 · 2 DC02"). When even numbered columns do not fit, the map shows the columns that do and the key ends with "+N more". A suffix all the names share (.corp.example) and a shared prefix are left out first, so the column shows what tells the names apart.
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.CellMap { ShowColumnLabels = value }; Ui.CellMap().ShowColumnLabels(value);public static CellMap ShowLegend(CellMap cellMap, bool value = true) #Sets CellMap.ShowLegend: Whether a legend line with each state's count follows the cells (default true).
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.CellMap { ShowLegend = value }; Ui.CellMap().ShowLegend(value);public static CellMap SpinRunning(CellMap cellMap, bool value = true) #Sets CellMap.SpinRunning: Whether running cells spin (default true); false shows the still running symbol, when another part of the screen already spins.
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.CellMap { SpinRunning = value }; Ui.CellMap().SpinRunning(value);public static CellMap Window(CellMap cellMap, CellWindow value) #Sets CellMap.Window: Which rows show when there are more than CellMap.MaxRows (default CellWindow.Head).
Parameters
- cellMap ConsoleMonster.Widgets.CellMap
- The instance.
- value ConsoleMonster.Widgets.CellMap.CellWindow
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.CellMap { Window = value }; Ui.CellMap().Window(value);