SplitterFluent
ConsoleMonster.Widgets
The fluent methods of Splitter: the generated property methods and the pane builders.
Inheritance
- object
- SplitterFluent
Methods
public static Splitter First(Splitter splitter, Action<ContentBuilder> content) #Builds the left (or top) pane.
Parameters
- splitter ConsoleMonster.Widgets.Splitter
- The splitter.
- content System.Action<ConsoleMonster.Layout.ContentBuilder>
- The pane's content.
public static Splitter First(Splitter splitter, IWidget value) #Sets Splitter.First: The left pane, or the top pane when Splitter.Vertical.
Parameters
- splitter ConsoleMonster.Widgets.Splitter
- The instance.
- value ConsoleMonster.Layout.IWidget
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Splitter { First = value }; Ui.Splitter().First(value);public static Splitter Key(Splitter splitter, string? value) #Sets Splitter.Key: The app-state key that holds the ratio (a number from 0.05 to 0.95); null keeps it with this instance only.
Parameters
- splitter ConsoleMonster.Widgets.Splitter
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Splitter { Key = value }; Ui.Splitter().Key(value);public static Splitter Ratio(Splitter splitter, double value) #Sets Splitter.Ratio: The first pane's share of the space, between 0.05 and 0.95 (default 0.5).
Parameters
- splitter ConsoleMonster.Widgets.Splitter
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Splitter { Ratio = value }; Ui.Splitter().Ratio(value);public static Splitter Second(Splitter splitter, Action<ContentBuilder> content) #Builds the right (or bottom) pane.
Parameters
- splitter ConsoleMonster.Widgets.Splitter
- The splitter.
- content System.Action<ConsoleMonster.Layout.ContentBuilder>
- The pane's content.
public static Splitter Second(Splitter splitter, IWidget value) #Sets Splitter.Second: The right pane, or the bottom pane when Splitter.Vertical.
Parameters
- splitter ConsoleMonster.Widgets.Splitter
- The instance.
- value ConsoleMonster.Layout.IWidget
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Splitter { Second = value }; Ui.Splitter().Second(value);public static Splitter Vertical(Splitter splitter, bool value = true) #Sets Splitter.Vertical: Stacks the panes top and bottom with a horizontal divider instead of side by side.
Parameters
- splitter ConsoleMonster.Widgets.Splitter
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Splitter { Vertical = value }; Ui.Splitter().Vertical(value);