Skip to content
ConsoleMonster
Class

GroupedColumnFluent

ConsoleMonster.Frames

Namespace
ConsoleMonster.Frames
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of GroupedColumn<T>, 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
  • GroupedColumnFluent

Methods

public static GroupedColumn<T?> AlignRight<T>(GroupedColumn<T?> groupedColumn, bool value = true) #

Sets GroupedColumn<T>.AlignRight: Right-aligns the header and cells (numbers, ages).

Type Parameters

T

Parameters

groupedColumn ConsoleMonster.Frames.GroupedColumn<T?> required
The instance.
value bool = true optional
The value; true when omitted.

Returns

GroupedColumn<T?> The same instance.

Examples

// C# initializer or property        // C# fluent
groupedColumn.AlignRight = value;    groupedColumn.AlignRight(value);
public static GroupedColumn<T?> Axis<T>(GroupedColumn<T?> groupedColumn, string? value) #

Sets GroupedColumn<T>.Axis: Literal axis labels for a bar column, printed on the header line in place of GroupedColumn<T>.Header; say what the bars measure in the section facts. A table with an axis has no header rule, so its rows start right under the labels.

Type Parameters

T

Parameters

groupedColumn ConsoleMonster.Frames.GroupedColumn<T?> required
The instance.
value string? required
The value.

Returns

GroupedColumn<T?> The same instance.

Examples

// C# initializer or property    // C# fluent
groupedColumn.Axis = value;      groupedColumn.Axis(value);
public static GroupedColumn<T?> MaxWidth<T>(GroupedColumn<T?> groupedColumn, int? value) #

Sets GroupedColumn<T>.MaxWidth: The widest the column may become before cells truncate.

Type Parameters

T

Parameters

groupedColumn ConsoleMonster.Frames.GroupedColumn<T?> required
The instance.
value int? required
The value.

Returns

GroupedColumn<T?> The same instance.

Examples

// C# initializer or property      // C# fluent
groupedColumn.MaxWidth = value;    groupedColumn.MaxWidth(value);
public static GroupedColumn<T?> Width<T>(GroupedColumn<T?> groupedColumn, int? value) #

Sets GroupedColumn<T>.Width: A fixed width, for bars and axes; null sizes to the content.

Type Parameters

T

Parameters

groupedColumn ConsoleMonster.Frames.GroupedColumn<T?> required
The instance.
value int? required
The value.

Returns

GroupedColumn<T?> The same instance.

Examples

// C# initializer or property    // C# fluent
groupedColumn.Width = value;     groupedColumn.Width(value);