Skip to content
ConsoleMonster
Class

RowsFluent

ConsoleMonster.Layout

Namespace
ConsoleMonster.Layout
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of Rows, 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
  • RowsFluent

Methods

Content 2 overloads
public static Rows Content(Rows rows, IWidget content) #

Configures this container's content before session ownership.

Parameters

rows ConsoleMonster.Layout.Rows required
The instance.
content ConsoleMonster.Layout.IWidget required
The widget or nested content builder.

Returns

Rows The same instance.
public static Rows Content(Rows rows, Action<ContentBuilder> content) #

Configures this container's content before session ownership.

Parameters

rows ConsoleMonster.Layout.Rows required
The instance.
content System.Action<ConsoleMonster.Layout.ContentBuilder> required
The widget or nested content builder.

Returns

Rows The same instance.
public static Rows DropByPriority(Rows rows, bool value = true) #

Sets Rows.DropByPriority: Whether rows that do not fit shrink and then leave whole, lowest Prioritized.Priority first (default false: the last rows are cut). With it on, a Prioritized child shrinks toward its minimum height and is left out when even the minimums do not fit, so it is never given less than its minimum; the height left over goes back to the highest priorities first. Other children always stay.

Parameters

rows ConsoleMonster.Layout.Rows required
The instance.
value bool = true optional
The value; true when omitted.

Returns

Rows The same instance.

Examples

// C# initializer or property    // C# fluent
rows.DropByPriority = value;     Ui.Rows().DropByPriority(value);
public static Rows Gap(Rows rows, int value) #

Sets Rows.Gap: Blank rows between children.

Parameters

rows ConsoleMonster.Layout.Rows required
The instance.
value int required
The value.

Returns

Rows The same instance.

Examples

// C# initializer or property    // C# fluent
rows.Gap = value;                Ui.Rows().Gap(value);