OutlineFluent
ConsoleMonster.Interactive
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
- The instance.
- item ConsoleMonster.Interactive.KeyBinding
- The item.
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
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.KeyBinding>
- The items, in order.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- item ConsoleMonster.Interactive.OutlineItem
- The item.
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
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.OutlineItem>
- The items, in order.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
outline.ValidationMessage = value; outline.ValidationMessage(value);