PanelFluent
ConsoleMonster.Layout
The fluent methods of Panel, 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
- PanelFluent
Methods
public static Panel Border(Panel panel, BoxStyle value) #Sets Panel.Border: The border style (default rounded).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value ConsoleMonster.Glyphs.BoxStyle
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { Border = value }; Ui.Panel().Border(value);public static Panel BorderRole(Panel panel, ThemeToken value) #Sets Panel.BorderRole: The theme token for the border (default ThemeToken.Border).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value ConsoleMonster.Styling.ThemeToken
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { BorderRole = value }; Ui.Panel().BorderRole(value);public static Panel Caption(Panel panel, string? value) #Sets Panel.Caption: Text on the right of the bottom edge (markup), for example "+12 more".
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { Caption = value }; Ui.Panel().Caption(value);public static Panel Content(Panel panel, IWidget content) #Configures this container's content before session ownership.
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- content ConsoleMonster.Layout.IWidget
- The widget or nested content builder.
public static Panel Content(Panel panel, Action<ContentBuilder> content) #Configures this container's content before session ownership.
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- content System.Action<ConsoleMonster.Layout.ContentBuilder>
- The widget or nested content builder.
public static Panel Expand(Panel panel, bool value = true) #Sets Panel.Expand: Whether the panel takes the full available width (default true).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { Expand = value }; Ui.Panel().Expand(value);public static Panel Gap(Panel panel, int value) #Sets Panel.Gap: Blank rows between content children when the content is several widgets, as a report usually is (default 0).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { Gap = value }; Ui.Panel().Gap(value);public static Panel HeaderRight(Panel panel, string? value) #Sets Panel.HeaderRight: Text on the right of the top edge (markup), for example a count or a clock.
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { HeaderRight = value }; Ui.Panel().HeaderRight(value);public static Panel Height(Panel panel, int? value) #Sets Panel.Height: A fixed total height including borders, or null to fit the content.
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { Height = value }; Ui.Panel().Height(value);public static Panel PaddingBottom(Panel panel, int value) #Sets Panel.PaddingBottom: Rows between the content and the bottom border (default 0).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { PaddingBottom = value }; Ui.Panel().PaddingBottom(value);public static Panel PaddingLeft(Panel panel, int value) #Sets Panel.PaddingLeft: Cells between the left border and the content (default 1).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { PaddingLeft = value }; Ui.Panel().PaddingLeft(value);public static Panel PaddingRight(Panel panel, int value) #Sets Panel.PaddingRight: Cells between the content and the right border (default 1).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { PaddingRight = value }; Ui.Panel().PaddingRight(value);public static Panel PaddingTop(Panel panel, int value) #Sets Panel.PaddingTop: Rows between the top border and the content (default 0).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { PaddingTop = value }; Ui.Panel().PaddingTop(value);public static Panel Status(Panel panel, StatusKind? value) #Sets Panel.Status: Optional status colour and title glyph for a verdict.
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value ConsoleMonster.Styling.StatusKind?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { Status = value }; Ui.Panel().Status(value);public static Panel Title(Panel panel, string? value) #Sets Panel.Title: The title shown in the top edge (markup).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { Title = value }; Ui.Panel().Title(value);public static Panel Verdict(Panel panel, bool value = true) #Sets Panel.Verdict: Uses a double border and a centred title for a verdict.
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.Panel { Verdict = value }; Ui.Panel().Verdict(value);