Skip to content
ConsoleMonster
Class

GroupedRowsFluent

ConsoleMonster.Frames

Namespace
ConsoleMonster.Frames
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of GroupedRows<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
  • GroupedRowsFluent

Methods

public static GroupedRows<T?> Columns<T>(GroupedRows<T?> groupedRows, IEnumerable<GroupedColumn<T?>> items) #

Adds items to GroupedRows<T>.Columns: The columns.

Type Parameters

T

Parameters

groupedRows ConsoleMonster.Frames.GroupedRows<T?> required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Frames.GroupedColumn<T?>> required
The items, in order.

Returns

GroupedRows<T?> The same instance.
public static GroupedRows<T?> Column<T>(GroupedRows<T?> groupedRows, GroupedColumn<T?> item) #

Adds an item to GroupedRows<T>.Columns: The columns.

Type Parameters

T

Parameters

groupedRows ConsoleMonster.Frames.GroupedRows<T?> required
The instance.
item ConsoleMonster.Frames.GroupedColumn<T?> required
The item.

Returns

GroupedRows<T?> The same instance.
public static GroupedRows<T?> HeadingBy<T>(GroupedRows<T?> groupedRows, Func<string, IReadOnlyList<T?>, GroupHeading>? value) #

Sets GroupedRows<T>.Heading: Builds a group's heading; null shows the key only.

Type Parameters

T

Parameters

groupedRows ConsoleMonster.Frames.GroupedRows<T?> required
The instance.
value System.Func<string, System.Collections.Generic.IReadOnlyList<T?>, ConsoleMonster.Frames.GroupHeading>? required
The callback.

Returns

GroupedRows<T?> The same instance.

Examples

// C# initializer or property    // C# fluent
groupedRows.Heading = value;     groupedRows.HeadingBy(value);
public static GroupedRows<T?> HealthyWhen<T>(GroupedRows<T?> groupedRows, Func<T?, bool>? value) #

Sets GroupedRows<T>.IsHealthy: Whether a row is healthy, for collapsing large sections; null never collapses.

Type Parameters

T

Parameters

groupedRows ConsoleMonster.Frames.GroupedRows<T?> required
The instance.
value System.Func<T?, bool>? required
The callback.

Returns

GroupedRows<T?> The same instance.

Examples

// C# initializer or property     // C# fluent
groupedRows.IsHealthy = value;    groupedRows.HealthyWhen(value);
public static GroupedRows<T?> HealthyWord<T>(GroupedRows<T?> groupedRows, string value) #

Sets GroupedRows<T>.HealthyWord: The word for collapsed healthy rows (default healthy).

Type Parameters

T

Parameters

groupedRows ConsoleMonster.Frames.GroupedRows<T?> required
The instance.
value string required
The value.

Returns

GroupedRows<T?> The same instance.

Examples

// C# initializer or property       // C# fluent
groupedRows.HealthyWord = value;    groupedRows.HealthyWord(value);
public static GroupedRows<T?> Noun<T>(GroupedRows<T?> groupedRows, string value) #

Sets GroupedRows<T>.Noun: The singular noun for rows, for +N more and collapsed counts.

Type Parameters

T

Parameters

groupedRows ConsoleMonster.Frames.GroupedRows<T?> required
The instance.
value string required
The value.

Returns

GroupedRows<T?> The same instance.

Examples

// C# initializer or property    // C# fluent
groupedRows.Noun = value;        groupedRows.Noun(value);
public static GroupedRows<T?> PluralNoun<T>(GroupedRows<T?> groupedRows, string? value) #

Sets GroupedRows<T>.PluralNoun: The plural noun; null adds an s.

Type Parameters

T

Parameters

groupedRows ConsoleMonster.Frames.GroupedRows<T?> required
The instance.
value string? required
The value.

Returns

GroupedRows<T?> The same instance.

Examples

// C# initializer or property      // C# fluent
groupedRows.PluralNoun = value;    groupedRows.PluralNoun(value);