Skip to content
ConsoleMonster
Class

DocumentViewerInputOptions

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed
Attributes
Fluent

Construction options for an embeddable document viewer.

Inheritance

Usage

Explore 39 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 20

Constructors

public DocumentViewerInputOptions() #

Methods

public DocumentViewer Build() #

Constructs the retained viewer.

Properties

public IWidget? Widget { get; set; } #

A single widget to browse. Supply either Widget or Parts.

public IEnumerable<DocumentViewerPart>? Parts { get; set; } #

Named parts to show as tabs, in display order.

public int Height { get; set; } #

The natural content height in rows.

Extension Methods

public static DocumentViewerInputOptions Disabled(DocumentViewerInputOptions documentViewerInputOptions, bool value = true) #

Sets AppInputOptions.Disabled: Disables editing and keyboard focus.

Parameters

documentViewerInputOptions ConsoleMonster.Interactive.DocumentViewerInputOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

DocumentViewerInputOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ConsoleMonster.Interactive.DocumentViewerInputOptions { Disabled = value };    Ui.DocumentViewer().Disabled(value);
public static DocumentViewerInputOptions Height(DocumentViewerInputOptions documentViewerInputOptions, int value) #

Sets DocumentViewerInputOptions.Height: The natural content height in rows.

Parameters

documentViewerInputOptions ConsoleMonster.Interactive.DocumentViewerInputOptions required
The instance.
value int required
The value.

Returns

DocumentViewerInputOptions The same instance.

Examples

// C# initializer or property                                                            // C# fluent
new global::ConsoleMonster.Interactive.DocumentViewerInputOptions { Height = value };    Ui.DocumentViewer().Height(value);
public static DocumentViewerInputOptions Key(DocumentViewerInputOptions documentViewerInputOptions, string value) #

Sets AppInputOptions.Key: The unique application-state key.

Parameters

documentViewerInputOptions ConsoleMonster.Interactive.DocumentViewerInputOptions required
The instance.
value string required
The value.

Returns

DocumentViewerInputOptions The same instance.

Examples

// C# initializer or property                                                         // C# fluent
new global::ConsoleMonster.Interactive.DocumentViewerInputOptions { Key = value };    Ui.DocumentViewer().Key(value);
public static DocumentViewerInputOptions Label(DocumentViewerInputOptions documentViewerInputOptions, string? value) #

Sets AppInputOptions.Label: The visible label; null uses the key.

Parameters

documentViewerInputOptions ConsoleMonster.Interactive.DocumentViewerInputOptions required
The instance.
value string? required
The value.

Returns

DocumentViewerInputOptions The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::ConsoleMonster.Interactive.DocumentViewerInputOptions { Label = value };    Ui.DocumentViewer().Label(value);
public static DocumentViewerInputOptions Parts(DocumentViewerInputOptions documentViewerInputOptions, IEnumerable<DocumentViewerPart>? value) #

Sets DocumentViewerInputOptions.Parts: Named parts to show as tabs, in display order.

Parameters

documentViewerInputOptions ConsoleMonster.Interactive.DocumentViewerInputOptions required
The instance.
value System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.DocumentViewerPart>? required
The value.

Returns

DocumentViewerInputOptions The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::ConsoleMonster.Interactive.DocumentViewerInputOptions { Parts = value };    Ui.DocumentViewer().Parts(value);
public static DocumentViewerInputOptions TabIndex(DocumentViewerInputOptions documentViewerInputOptions, int value) #

Sets AppInputOptions.TabIndex: Keyboard focus order; equal values preserve declaration order.

Parameters

documentViewerInputOptions ConsoleMonster.Interactive.DocumentViewerInputOptions required
The instance.
value int required
The value.

Returns

DocumentViewerInputOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ConsoleMonster.Interactive.DocumentViewerInputOptions { TabIndex = value };    Ui.DocumentViewer().TabIndex(value);
public static DocumentViewerInputOptions ValidationMessage(DocumentViewerInputOptions documentViewerInputOptions, string? value) #

Sets AppInputOptions.ValidationMessage: Initial validation text.

Parameters

documentViewerInputOptions ConsoleMonster.Interactive.DocumentViewerInputOptions required
The instance.
value string? required
The value.

Returns

DocumentViewerInputOptions The same instance.

Examples

// C# initializer or property                                                                       // C# fluent
new global::ConsoleMonster.Interactive.DocumentViewerInputOptions { ValidationMessage = value };    Ui.DocumentViewer().ValidationMessage(value);
public static DocumentViewerInputOptions WhenChanged(DocumentViewerInputOptions documentViewerInputOptions, EventHandler<AppValueChangedEventArgs>? value) #

Sets AppInputOptions.OnChange: Runs after a committed value change on the application input thread.

Parameters

documentViewerInputOptions ConsoleMonster.Interactive.DocumentViewerInputOptions required
The instance.
value System.EventHandler<ConsoleMonster.Interactive.AppValueChangedEventArgs>? required
The callback.

Returns

DocumentViewerInputOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ConsoleMonster.Interactive.DocumentViewerInputOptions { OnChange = value };    Ui.DocumentViewer().WhenChanged(value);
public static DocumentViewerInputOptions Widget(DocumentViewerInputOptions documentViewerInputOptions, IWidget? value) #

Sets DocumentViewerInputOptions.Widget: A single widget to browse. Supply either Widget or Parts.

Parameters

documentViewerInputOptions ConsoleMonster.Interactive.DocumentViewerInputOptions required
The instance.
value ConsoleMonster.Layout.IWidget? required
The value.

Returns

DocumentViewerInputOptions The same instance.

Examples

// C# initializer or property                                                            // C# fluent
new global::ConsoleMonster.Interactive.DocumentViewerInputOptions { Widget = value };    Ui.DocumentViewer().Widget(value);