API Reference
Class
TreeNodeFluent
The fluent methods of TreeNode, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- Object
- TreeNodeFluent
Methods
public static TreeNode WithLabel(TreeNode treeNode, String value) #Returns:
TreeNodeSets TreeNode.Label: The label (markup).
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value System.String
- The value.
Returns
The same instance.
public static TreeNode WithNote(TreeNode treeNode, String? value) #Returns:
TreeNodeSets TreeNode.Note: A muted note shown after the label (counts, values), or null.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value System.String?
- The value.
Returns
The same instance.
public static TreeNode WithPresenter(TreeNode treeNode, ICellPresenter? value) #Returns:
TreeNodeSets TreeNode.Presenter: The presenter for TreeNode.Value, or null for automatic.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value ConsoleMonster.Presenters.ICellPresenter?
- The value.
Returns
The same instance.
public static TreeNode WithStatus(TreeNode treeNode, StatusKind? value) #Returns:
TreeNodeSets TreeNode.Status: An optional status marker shown before the label.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value ConsoleMonster.Styling.StatusKind?
- The value.
Returns
The same instance.
public static TreeNode WithValue(TreeNode treeNode, TableCell? value) #Returns:
TreeNodeSets TreeNode.Value: A value shown after the label through TreeNode.Presenter (dates, sizes, statuses...), or null.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value ConsoleMonster.Widgets.TableCell?
- The value.
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?