Skip to content
ConsoleMonster
Class

TreeHierarchyOptionsFluent

ConsoleMonster.Widgets

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

The fluent methods of TreeHierarchyOptions, 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
  • TreeHierarchyOptionsFluent

Methods

public static TreeHierarchyOptions Configure(TreeHierarchyOptions treeHierarchyOptions, Action<TreeHierarchyOptions> configure) #

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

treeHierarchyOptions ConsoleMonster.Widgets.TreeHierarchyOptions required
The instance.
configure System.Action<ConsoleMonster.Widgets.TreeHierarchyOptions> required
Assignments applied in order.

Returns

TreeHierarchyOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Widgets.TreeHierarchyOptions { Identity = value };    Ui.Options<global::ConsoleMonster.Widgets.TreeHierarchyOptions>().Configure(configured => configured.Identity = value);
public static TreeHierarchyOptions Depth(TreeHierarchyOptions treeHierarchyOptions, int value) #

Sets TreeHierarchyOptions.Depth: How many levels of children are followed below each top-level item (default 5; 0 shows only the items).

Parameters

treeHierarchyOptions ConsoleMonster.Widgets.TreeHierarchyOptions required
The instance.
value int required
The value.

Returns

TreeHierarchyOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ConsoleMonster.Widgets.TreeHierarchyOptions { Depth = value };    Ui.Options<global::ConsoleMonster.Widgets.TreeHierarchyOptions>().Depth(value);
public static TreeHierarchyOptions MaxItems(TreeHierarchyOptions treeHierarchyOptions, int value) #

Sets TreeHierarchyOptions.MaxItems: The most children listed per node, and top-level items listed, before a "+N more" note (default 25; 0 or less lists all).

Parameters

treeHierarchyOptions ConsoleMonster.Widgets.TreeHierarchyOptions required
The instance.
value int required
The value.

Returns

TreeHierarchyOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Widgets.TreeHierarchyOptions { MaxItems = value };    Ui.Options<global::ConsoleMonster.Widgets.TreeHierarchyOptions>().MaxItems(value);
public static TreeHierarchyOptions MaxNodes(TreeHierarchyOptions treeHierarchyOptions, int value) #

Sets TreeHierarchyOptions.MaxNodes: The most nodes the whole hierarchy may add (default 5000; 0 or less for no limit); beyond it a "node limit reached" note ends the walk.

Parameters

treeHierarchyOptions ConsoleMonster.Widgets.TreeHierarchyOptions required
The instance.
value int required
The value.

Returns

TreeHierarchyOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Widgets.TreeHierarchyOptions { MaxNodes = value };    Ui.Options<global::ConsoleMonster.Widgets.TreeHierarchyOptions>().MaxNodes(value);