API Reference
HeaderBarFluent
The fluent methods of HeaderBar, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- Object
- HeaderBarFluent
Methods
public static HeaderBar AddCrumb(HeaderBar headerBar, String item) #HeaderBarAdds an item to HeaderBar.Crumbs: Breadcrumb steps after the title, plain text ("Tasks", "Review & run").
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- item System.String
- The item.
Returns
The same instance.
public static HeaderBar AddCrumbs(HeaderBar headerBar, params String[] items) #HeaderBarAdds items to HeaderBar.Crumbs: Breadcrumb steps after the title, plain text ("Tasks", "Review & run").
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- items System.String[]
- The items, in order.
Returns
The same instance.
public static HeaderBar AddCrumbs(HeaderBar headerBar, IEnumerable<String> items) #HeaderBarAdds items to HeaderBar.Crumbs: Breadcrumb steps after the title, plain text ("Tasks", "Review & run").
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- items System.Collections.Generic.IEnumerable<System.String>
- The items, in order.
Returns
The same instance.
public static HeaderBar WithClock(HeaderBar headerBar, TimeSpan? value) #HeaderBarSets HeaderBar.Clock: The clock value; null uses the render context's elapsed time.
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- value System.TimeSpan?
- The value.
Returns
The same instance.
public static HeaderBar WithRight(HeaderBar headerBar, String? value) #HeaderBarSets HeaderBar.Right: Plain text on the right, before the clock (an app's subtitle, a step count).
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- value System.String?
- The value.
Returns
The same instance.
public static HeaderBar WithShowClock(HeaderBar headerBar, Boolean value = true) #HeaderBarSets HeaderBar.ShowClock: Shows the elapsed clock on the right.
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static HeaderBar WithStatus(HeaderBar headerBar, String? value) #HeaderBarSets HeaderBar.Status: Status text on the right (markup).
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- value System.String?
- The value.
Returns
The same instance.
public static HeaderBar WithStatusLevel(HeaderBar headerBar, StatusKind? value) #HeaderBarSets HeaderBar.StatusLevel: The status kind; its marker goes before the status text.
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- value ConsoleMonster.Styling.StatusKind?
- The value.
Returns
The same instance.
public static HeaderBar WithSubtitle(HeaderBar headerBar, String? value) #HeaderBarSets HeaderBar.Subtitle: A subtitle after the title, separated by a dot (markup).
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- value System.String?
- The value.
Returns
The same instance.
public static HeaderBar WithTitle(HeaderBar headerBar, String value) #HeaderBarSets HeaderBar.Title: The title (markup).
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- value System.String
- The value.
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?