API Reference
Class
ColumnsBuilder
Fluent composition of side-by-side columns (used through RowsBuilder.Columns).
Inheritance
- Object
- ColumnsBuilder
Usage
Explore 8 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 5
- Method ColumnsBuilder.Add
- Method ColumnsBuilder.AddFixed
- Method ColumnsBuilder.Gap
- Method ColumnsBuilder.Panel
- Method ColumnsBuilder.Panel``1
Accepted by parameters 3
- Method DashboardBuilder.Columns
- Method RowsBuilder.Columns
- Method RowsBuilderBase.Columns
Constructors
public ColumnsBuilder() #Methods
public ColumnsBuilder Add(IWidget widget, Double weight = 1) #Returns:
ColumnsBuilderAdds a widget with a share of the width.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The widget.
- weight System.Double = 1
- Relative width (default 1).
Returns
This builder.
public ColumnsBuilder AddFixed(IWidget widget, Int32 cells) #Returns:
ColumnsBuilderAdds a widget with a fixed width.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The widget.
- cells System.Int32
- The width in cells.
Returns
This builder.
public ColumnsBuilder Gap(Int32 gap) #Returns:
ColumnsBuilderBlank columns between children.
Parameters
- gap System.Int32
- The gap.
Returns
This builder.
public ColumnsBuilder Panel(String title, IWidget content, Double weight = 1, String? caption = null) #Returns:
ColumnsBuilderAdds a panel around any content (for example a Rows of several widgets).
Parameters
- title System.String
- The panel title (markup).
- content ConsoleMonster.Layout.IWidget
- The content.
- weight System.Double = 1
- Relative width.
- caption System.String? = null
- Text on the right of the top edge.
Returns
This builder.
public ColumnsBuilder Panel<T>(String title, T widget, out T added, Double weight = 1, String? caption = null) #Returns:
ColumnsBuilderAdds a widget inside a titled panel with a share of the width.
Type Parameters
- T
- The widget type.
Parameters
- title System.String
- The panel title (markup).
- widget T
- The content.
- added T
- The content, typed.
- weight System.Double = 1
- Relative width (default 1).
- caption System.String? = null
- Text on the right of the top edge.
Returns
This builder.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?