Skip to content
ConsoleMonster
Class

DocumentViewerFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static

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 required
The instance.
item ConsoleMonster.Interactive.KeyBinding required
The item.

Returns

DocumentViewer The same instance.
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 required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.KeyBinding> required
The items, in order.

Returns

DocumentViewer The same instance.
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 required
The instance.
value bool = true optional
The value; true when omitted.

Returns

DocumentViewer The same instance.

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 required
The instance.
value int required
The value.

Returns

DocumentViewer The same instance.

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 required
The instance.
value string? required
The value.

Returns

DocumentViewer The same instance.

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 required
The instance.
value int required
The value.

Returns

DocumentViewer The same instance.

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 required
The instance.
value string? required
The value.

Returns

DocumentViewer The same instance.

Examples

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