Skip to content
ConsoleMonster
Class

LayoutGridFluent

ConsoleMonster.Layout

Namespace
ConsoleMonster.Layout
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of LayoutGrid, 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
  • LayoutGridFluent

Methods

public static LayoutGrid ColumnGap(LayoutGrid layoutGrid, int value) #

Sets LayoutGrid.ColumnGap: Blank columns between cells (default 1).

Parameters

layoutGrid ConsoleMonster.Layout.LayoutGrid required
The instance.
value int required
The value.

Returns

LayoutGrid The same instance.

Examples

// C# initializer or property    // C# fluent
layoutGrid.ColumnGap = value;    Ui.LayoutGrid().ColumnGap(value);
public static LayoutGrid Columns(LayoutGrid layoutGrid, int value) #

Sets LayoutGrid.Columns: The preferred number of columns.

Parameters

layoutGrid ConsoleMonster.Layout.LayoutGrid required
The instance.
value int required
The value.

Returns

LayoutGrid The same instance.

Examples

// C# initializer or property    // C# fluent
layoutGrid.Columns = value;      Ui.LayoutGrid().Columns(value);
Content 2 overloads
public static LayoutGrid Content(LayoutGrid layoutGrid, IWidget content) #

Configures this container's content before session ownership.

Parameters

layoutGrid ConsoleMonster.Layout.LayoutGrid required
The instance.
content ConsoleMonster.Layout.IWidget required
The widget or nested content builder.

Returns

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

Configures this container's content before session ownership.

Parameters

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

Returns

LayoutGrid The same instance.
public static LayoutGrid FillHeight(LayoutGrid layoutGrid, bool value = true) #

Sets LayoutGrid.FillHeight: Whether rows grow to fill spare height in a bounded region (default true).

Parameters

layoutGrid ConsoleMonster.Layout.LayoutGrid required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LayoutGrid The same instance.

Examples

// C# initializer or property     // C# fluent
layoutGrid.FillHeight = value;    Ui.LayoutGrid().FillHeight(value);
public static LayoutGrid MinColumnWidth(LayoutGrid layoutGrid, int value) #

Sets LayoutGrid.MinColumnWidth: The narrowest column before the grid reduces its column count (default 24).

Parameters

layoutGrid ConsoleMonster.Layout.LayoutGrid required
The instance.
value int required
The value.

Returns

LayoutGrid The same instance.

Examples

// C# initializer or property         // C# fluent
layoutGrid.MinColumnWidth = value;    Ui.LayoutGrid().MinColumnWidth(value);
public static LayoutGrid RowGap(LayoutGrid layoutGrid, int value) #

Sets LayoutGrid.RowGap: Blank rows between grid rows (default 0).

Parameters

layoutGrid ConsoleMonster.Layout.LayoutGrid required
The instance.
value int required
The value.

Returns

LayoutGrid The same instance.

Examples

// C# initializer or property    // C# fluent
layoutGrid.RowGap = value;       Ui.LayoutGrid().RowGap(value);