API Reference
Class
TreeFluent
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:
TreeSets Tree.Presentation: Culture, clock and time zone for node values.
Parameters
- tree ConsoleMonster.Widgets.Tree
- The instance.
- value ConsoleMonster.Presenters.PresentationOptions
- The value.
Returns
The same instance.
public static Tree WithPresentation(Tree tree, Action<PresentationOptions> configure) #Returns:
TreeConfigures Tree.Presentation in place (creating it when not set): Culture, clock and time zone for node values.
Parameters
- tree ConsoleMonster.Widgets.Tree
- The instance.
- configure System.Action<ConsoleMonster.Presenters.PresentationOptions>
- Configures the value.
Returns
The same instance.
public static Tree WithRoot(Tree tree, Action<TreeNode> configure) #Returns:
TreeConfigures Tree.Root in place: The root node.
Parameters
- tree ConsoleMonster.Widgets.Tree
- The instance.
- configure System.Action<ConsoleMonster.Widgets.TreeNode>
- Configures the value.
Returns
The same instance.
public static Tree WithShowRoot(Tree tree, Boolean value = true) #Returns:
TreeSets Tree.ShowRoot: Whether the root label is shown.
Parameters
- tree ConsoleMonster.Widgets.Tree
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?