Skip to content
ConsoleMonster
Class

FormPresetFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of FormPreset, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • object
  • FormPresetFluent

Methods

public static FormPreset Description(FormPreset formPreset, string? value) #

Sets FormPreset.Description: A sentence about the preset, shown with it, or null.

Parameters

formPreset ConsoleMonster.Interactive.FormPreset required
The instance.
value string? required
The value.

Returns

FormPreset The same instance.

Examples

// C# initializer or property      // C# fluent
formPreset.Description = value;    formPreset.Description(value);
public static FormPreset Preview(FormPreset formPreset, IWidget? value) #

Sets FormPreset.Preview: Content describing the preset (what it fills in), for lists that show a preview while a preset has focus; the command palette, where a form's presets are listed today, shows the FormPreset.Description only.

Parameters

formPreset ConsoleMonster.Interactive.FormPreset required
The instance.
value ConsoleMonster.Layout.IWidget? required
The value.

Returns

FormPreset The same instance.

Examples

// C# initializer or property    // C# fluent
formPreset.Preview = value;      formPreset.Preview(value);