API Reference
Class
RowsBuilderBase`1
Base of the fluent vertical-layout builders (RowsBuilder, DashboardBuilder). Every method returns the builder; out parameters hand back the typed widgets so callers can create live handles from them after the session starts.
Inheritance
- Object
- RowsBuilderBase`1
Type Parameters
- TSelf
- The concrete builder type returned by every method.
Methods
public TSelf Add(IWidget widget, LayoutSize? size = null) #Returns:
TSelfAdds a widget sized to its content.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The widget.
- size ConsoleMonster.Layout.LayoutSize? = null
- Its height specification (default auto).
Returns
This builder.
public TSelf Add<T>(T widget, out T added, LayoutSize? size = null) #Returns:
TSelfAdds a widget and returns it typed.
Type Parameters
- T
- The widget type.
Parameters
- widget T
- The widget.
- added T
- The same widget, typed.
- size ConsoleMonster.Layout.LayoutSize? = null
- Its height specification.
Returns
This builder.
public TSelf Columns(Action<ColumnsBuilder> configure, LayoutSize? size = null) #Returns:
TSelfAdds a row of columns.
Parameters
- configure System.Action<ConsoleMonster.Building.ColumnsBuilder>
- Configures the columns.
- size ConsoleMonster.Layout.LayoutSize? = null
- Its height specification (default auto).
Returns
This builder.
public TSelf Gap(Int32 gap) #Returns:
TSelfBlank rows between children.
Parameters
- gap System.Int32
- The gap.
Returns
This builder.
public TSelf Panel(String title, IWidget content, Boolean fill = false, String? caption = null) #Returns:
TSelfAdds any content inside a titled panel.
Parameters
- title System.String
- The panel title (markup).
- content ConsoleMonster.Layout.IWidget
- The content.
- fill System.Boolean = false
- Whether the panel takes the remaining height in a live frame.
- caption System.String? = null
- Text on the right of the top edge.
Returns
This builder.
public TSelf Panel<T>(String title, T widget, out T added, Boolean fill = false, String? caption = null) #Returns:
TSelfAdds a widget inside a titled panel.
Type Parameters
- T
- The widget type.
Parameters
- title System.String
- The panel title (markup).
- widget T
- The content.
- added T
- The content, typed.
- fill System.Boolean = false
- Whether the panel takes the remaining height in a live frame.
- caption System.String? = null
- Text on the right of the top edge.
Returns
This builder.
public TSelf Region(String title, String name, IWidget? content = null, Boolean fill = false, String? caption = null) #Returns:
TSelfAdds a panel whose content can be replaced while the session runs: the panel frame stays and the content is a Slot named name (see LiveSession.Region).
Parameters
- title System.String
- The panel title.
- name System.String
- The region name.
- content ConsoleMonster.Layout.IWidget? = null
- The first content, or null for an empty region.
- fill System.Boolean = false
- Whether the panel takes the remaining height.
- caption System.String? = null
- A caption in the bottom border, or null.
Returns
This builder.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?