Skip to content
ConsoleMonster
Class

MenuPresetFluent

ConsoleMonster.Interactive

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

The fluent methods of MenuPreset, 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
  • MenuPresetFluent

Methods

public static MenuPreset Description(MenuPreset menuPreset, string? value) #

Sets MenuPreset.Description: A sentence about the preset, shown while it has focus in the list, or null.

Parameters

menuPreset ConsoleMonster.Interactive.MenuPreset required
The instance.
value string? required
The value.

Returns

MenuPreset The same instance.

Examples

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

Sets MenuPreset.Preview: Content shown beside the list (or below it when narrow) while the preset has focus, such as what it sets; or null.

Parameters

menuPreset ConsoleMonster.Interactive.MenuPreset required
The instance.
value ConsoleMonster.Layout.IWidget? required
The value.

Returns

MenuPreset The same instance.

Examples

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