Skip to content
ConsoleMonster

API Reference

Class

TreeFluent

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

The fluent methods of Tree, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • Object
  • TreeFluent

Methods

WithPresentation 2 overloads
public static Tree WithPresentation(Tree tree, PresentationOptions value) #
Returns: Tree

Sets Tree.Presentation: Culture, clock and time zone for node values.

Parameters

tree ConsoleMonster.Widgets.Tree requiredposition: 0
The instance.
value ConsoleMonster.Presenters.PresentationOptions requiredposition: 1
The value.

Returns

The same instance.

public static Tree WithPresentation(Tree tree, Action<PresentationOptions> configure) #
Returns: Tree

Configures Tree.Presentation in place (creating it when not set): Culture, clock and time zone for node values.

Parameters

tree ConsoleMonster.Widgets.Tree requiredposition: 0
The instance.
configure System.Action<ConsoleMonster.Presenters.PresentationOptions> requiredposition: 1
Configures the value.

Returns

The same instance.

public static Tree WithRoot(Tree tree, Action<TreeNode> configure) #
Returns: Tree

Configures Tree.Root in place: The root node.

Parameters

tree ConsoleMonster.Widgets.Tree requiredposition: 0
The instance.
configure System.Action<ConsoleMonster.Widgets.TreeNode> requiredposition: 1
Configures the value.

Returns

The same instance.

public static Tree WithShowRoot(Tree tree, Boolean value = true) #
Returns: Tree

Sets Tree.ShowRoot: Whether the root label is shown.

Parameters

tree ConsoleMonster.Widgets.Tree requiredposition: 0
The instance.
value System.Boolean = true optionalposition: 1
The value (default true).

Returns

The same instance.