Class
FormPresetFluent
ConsoleMonster.Interactive
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
- The instance.
- value string?
- The value.
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
- The instance.
- value ConsoleMonster.Layout.IWidget?
- The value.
Examples
// C# initializer or property // C# fluent
formPreset.Preview = value; formPreset.Preview(value);