API Reference
PanelFluent
The fluent methods of Panel, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- Object
- PanelFluent
Methods
public static Panel WithBorder(Panel panel, BoxStyle value) #PanelSets Panel.Border: The border style (default rounded).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value ConsoleMonster.Glyphs.BoxStyle
- The value.
Returns
The same instance.
public static Panel WithBorderToken(Panel panel, ThemeToken value) #PanelSets Panel.BorderToken: The theme token for the border (default ThemeToken.Border).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value ConsoleMonster.Styling.ThemeToken
- The value.
Returns
The same instance.
public static Panel WithCaption(Panel panel, String? value) #PanelSets Panel.Caption: Text on the right of the top edge (markup), for example a count or a clock.
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value System.String?
- The value.
Returns
The same instance.
public static Panel WithExpand(Panel panel, Boolean value = true) #PanelSets Panel.Expand: Whether the panel takes the full available width (default true).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static Panel WithHeight(Panel panel, Int32? value) #PanelSets Panel.Height: A fixed total height including borders, or null to fit the content.
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value System.Int32?
- The value.
Returns
The same instance.
public static Panel WithPaddingBottom(Panel panel, Int32 value) #PanelSets Panel.PaddingBottom: Rows between the content and the bottom border (default 0).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static Panel WithPaddingLeft(Panel panel, Int32 value) #PanelSets Panel.PaddingLeft: Cells between the left border and the content (default 1).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static Panel WithPaddingRight(Panel panel, Int32 value) #PanelSets Panel.PaddingRight: Cells between the content and the right border (default 1).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static Panel WithPaddingTop(Panel panel, Int32 value) #PanelSets Panel.PaddingTop: Rows between the top border and the content (default 0).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static Panel WithTitle(Panel panel, String? value) #PanelSets Panel.Title: The title shown in the top edge (markup).
Parameters
- panel ConsoleMonster.Layout.Panel
- The instance.
- value System.String?
- The value.
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?