Skip to content
ConsoleMonster
Class

BreadcrumbFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of Breadcrumb, 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
  • BreadcrumbFluent

Methods

public static Breadcrumb Ancestor(Breadcrumb breadcrumb, string item) #

Adds an item to Breadcrumb.Ancestors: Segments shown before a followed outline's headings, such as the screen and tab names.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
item string required
The item.

Returns

Breadcrumb The same instance.
public static Breadcrumb Ancestors(Breadcrumb breadcrumb, IEnumerable<string> items) #

Adds items to Breadcrumb.Ancestors: Segments shown before a followed outline's headings, such as the screen and tab names.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

Breadcrumb The same instance.
public static Breadcrumb Binding(Breadcrumb breadcrumb, KeyBinding item) #

Adds an item to InputControl.Bindings: Keys that apply while this control has focus. They reach the control before its own keys (so Enter can open the selected row) and feed the app footer.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
item ConsoleMonster.Interactive.KeyBinding required
The item.

Returns

Breadcrumb The same instance.
public static Breadcrumb Bindings(Breadcrumb breadcrumb, IEnumerable<KeyBinding> items) #

Adds items to InputControl.Bindings: Keys that apply while this control has focus. They reach the control before its own keys (so Enter can open the selected row) and feed the app footer.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.KeyBinding> required
The items, in order.

Returns

Breadcrumb The same instance.
public static Breadcrumb Disabled(Breadcrumb breadcrumb, bool value = true) #

Sets InputControl.Disabled: Whether this control is excluded from input and focus traversal.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
value bool = true optional
The value; true when omitted.

Returns

Breadcrumb The same instance.

Examples

// C# initializer or property    // C# fluent
breadcrumb.Disabled = value;     breadcrumb.Disabled(value);
public static Breadcrumb Label(Breadcrumb breadcrumb, string? value) #

Sets InputControl.Label: The visible label, or null to use the name.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
value string? required
The value.

Returns

Breadcrumb The same instance.

Examples

// C# initializer or property    // C# fluent
breadcrumb.Label = value;        breadcrumb.Label(value);
Outline 2 overloads
public static Breadcrumb Outline(Breadcrumb breadcrumb, Outline? value) #

Sets Breadcrumb.Outline: The outline whose current entry this breadcrumb shows, or null to show Breadcrumb.Segments.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
value ConsoleMonster.Interactive.Outline? required
The value.

Returns

Breadcrumb The same instance.

Examples

// C# initializer or property    // C# fluent
breadcrumb.Outline = value;      breadcrumb.Outline(value);
public static Breadcrumb Outline(Breadcrumb breadcrumb, Action<Outline> configure) #

Configures Breadcrumb.Outline in place: The outline whose current entry this breadcrumb shows, or null to show Breadcrumb.Segments.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
configure System.Action<ConsoleMonster.Interactive.Outline> required
Configures the value.

Returns

Breadcrumb The same instance.
public static Breadcrumb Segment(Breadcrumb breadcrumb, string item) #

Adds an item to Breadcrumb.Segments: The segments shown when no outline is followed, outermost first.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
item string required
The item.

Returns

Breadcrumb The same instance.
public static Breadcrumb Segments(Breadcrumb breadcrumb, IEnumerable<string> items) #

Adds items to Breadcrumb.Segments: The segments shown when no outline is followed, outermost first.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

Breadcrumb The same instance.
public static Breadcrumb TabIndex(Breadcrumb breadcrumb, int value) #

Sets InputControl.TabIndex: Focus order; equal values preserve declaration order.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
value int required
The value.

Returns

Breadcrumb The same instance.

Examples

// C# initializer or property    // C# fluent
breadcrumb.TabIndex = value;     breadcrumb.TabIndex(value);
public static Breadcrumb ValidationMessage(Breadcrumb breadcrumb, string? value) #

Sets InputControl.ValidationMessage: The current validation message below the control, or null.

Parameters

breadcrumb ConsoleMonster.Interactive.Breadcrumb required
The instance.
value string? required
The value.

Returns

Breadcrumb The same instance.

Examples

// C# initializer or property            // C# fluent
breadcrumb.ValidationMessage = value;    breadcrumb.ValidationMessage(value);