Skip to content
ConsoleMonster
Class

OutlineFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of Outline, 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
  • OutlineFluent

Methods

public static Outline Binding(Outline outline, 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

outline ConsoleMonster.Interactive.Outline required
The instance.
item ConsoleMonster.Interactive.KeyBinding required
The item.

Returns

Outline The same instance.
public static Outline Bindings(Outline outline, 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

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

Returns

Outline The same instance.
public static Outline Disabled(Outline outline, bool value = true) #

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

Parameters

outline ConsoleMonster.Interactive.Outline required
The instance.
value bool = true optional
The value; true when omitted.

Returns

Outline The same instance.

Examples

// C# initializer or property    // C# fluent
outline.Disabled = value;        outline.Disabled(value);
public static Outline Item(Outline outline, OutlineItem item) #

Adds an item to Outline.Items: The entries, in order. Configure them before the app runs.

Parameters

outline ConsoleMonster.Interactive.Outline required
The instance.
item ConsoleMonster.Interactive.OutlineItem required
The item.

Returns

Outline The same instance.
public static Outline Items(Outline outline, IEnumerable<OutlineItem> items) #

Adds items to Outline.Items: The entries, in order. Configure them before the app runs.

Parameters

outline ConsoleMonster.Interactive.Outline required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.OutlineItem> required
The items, in order.

Returns

Outline The same instance.
public static Outline Label(Outline outline, string? value) #

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

Parameters

outline ConsoleMonster.Interactive.Outline required
The instance.
value string? required
The value.

Returns

Outline The same instance.

Examples

// C# initializer or property    // C# fluent
outline.Label = value;           outline.Label(value);
public static Outline SelectedIndex(Outline outline, int value) #

Sets Outline.SelectedIndex: The index of the entry the reader is on, or -1. A view that scrolls sets it to follow the reading position; the selection follows it unless the outline has focus.

Parameters

outline ConsoleMonster.Interactive.Outline required
The instance.
value int required
The value.

Returns

Outline The same instance.

Examples

// C# initializer or property     // C# fluent
outline.SelectedIndex = value;    outline.SelectedIndex(value);
public static Outline TabIndex(Outline outline, int value) #

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

Parameters

outline ConsoleMonster.Interactive.Outline required
The instance.
value int required
The value.

Returns

Outline The same instance.

Examples

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

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

Parameters

outline ConsoleMonster.Interactive.Outline required
The instance.
value string? required
The value.

Returns

Outline The same instance.

Examples

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