LayoutGridFluent
ConsoleMonster.Layout
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
layoutGrid.Columns = value; Ui.LayoutGrid().Columns(value);public static LayoutGrid Content(LayoutGrid layoutGrid, IWidget content) #Configures this container's content before session ownership.
Parameters
- layoutGrid ConsoleMonster.Layout.LayoutGrid
- The instance.
- content ConsoleMonster.Layout.IWidget
- The widget or nested content builder.
public static LayoutGrid Content(LayoutGrid layoutGrid, Action<ContentBuilder> content) #Configures this container's content before session ownership.
Parameters
- layoutGrid ConsoleMonster.Layout.LayoutGrid
- The instance.
- content System.Action<ConsoleMonster.Layout.ContentBuilder>
- The widget or nested content builder.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
layoutGrid.RowGap = value; Ui.LayoutGrid().RowGap(value);