DocumentViewerFluent
ConsoleMonster.Interactive
The fluent methods of DocumentViewer, 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
- DocumentViewerFluent
Methods
public static DocumentViewer Binding(DocumentViewer documentViewer, 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
- documentViewer ConsoleMonster.Interactive.DocumentViewer
- The instance.
- item ConsoleMonster.Interactive.KeyBinding
- The item.
public static DocumentViewer Bindings(DocumentViewer documentViewer, 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
- documentViewer ConsoleMonster.Interactive.DocumentViewer
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.KeyBinding>
- The items, in order.
public static DocumentViewer Disabled(DocumentViewer documentViewer, bool value = true) #Sets InputControl.Disabled: Whether this control is excluded from input and focus traversal.
Parameters
- documentViewer ConsoleMonster.Interactive.DocumentViewer
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
documentViewer.Disabled = value; documentViewer.Disabled(value);public static DocumentViewer Height(DocumentViewer documentViewer, int value) #Sets DocumentViewer.Height: The natural content height in rows; a containing layout can allocate a different height.
Parameters
- documentViewer ConsoleMonster.Interactive.DocumentViewer
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
documentViewer.Height = value; documentViewer.Height(value);public static DocumentViewer Label(DocumentViewer documentViewer, string? value) #Sets InputControl.Label: The visible label, or null to use the name.
Parameters
- documentViewer ConsoleMonster.Interactive.DocumentViewer
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
documentViewer.Label = value; documentViewer.Label(value);public static DocumentViewer TabIndex(DocumentViewer documentViewer, int value) #Sets InputControl.TabIndex: Focus order; equal values preserve declaration order.
Parameters
- documentViewer ConsoleMonster.Interactive.DocumentViewer
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
documentViewer.TabIndex = value; documentViewer.TabIndex(value);public static DocumentViewer ValidationMessage(DocumentViewer documentViewer, string? value) #Sets InputControl.ValidationMessage: The current validation message below the control, or null.
Parameters
- documentViewer ConsoleMonster.Interactive.DocumentViewer
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
documentViewer.ValidationMessage = value; documentViewer.ValidationMessage(value);