TreeNodeFluent
ConsoleMonster.Widgets
The fluent methods of TreeNode, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- TreeNodeFluent
Methods
public static TreeNode AsciiMarker(TreeNode treeNode, string? value) #Sets TreeNode.AsciiMarker: The ASCII alternative to TreeNode.Marker; null uses that marker unchanged.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.AsciiMarker = value; treeNode.AsciiMarker(value);public static TreeNode Bare(TreeNode treeNode, bool value = true) #Sets TreeNode.Bare: Render a container without a guide and exclude its label from value-column sizing.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
treeNode.Bare = value; treeNode.Bare(value);public static TreeNode BasicMarker(TreeNode treeNode, string? value) #Sets TreeNode.BasicMarker: An optional glyph used only in the Basic tier; null retains TreeNode.Marker.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.BasicMarker = value; treeNode.BasicMarker(value);public static TreeNode Detail(TreeNode treeNode, string? value) #Sets TreeNode.Detail: A muted detail shown after the label (counts, values), or null.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.Detail = value; treeNode.Detail(value);public static TreeNode Identity(TreeNode treeNode, object? value) #Sets TreeNode.Identity: An optional stable identity for cycle and repeated-node detection; null uses node reference identity.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value object?
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.Identity = value; treeNode.Identity(value);public static TreeNode Label(TreeNode treeNode, string value) #Sets TreeNode.Label: The label (markup).
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.Label = value; treeNode.Label(value);public static TreeNode Marker(TreeNode treeNode, string? value) #Sets TreeNode.Marker: An optional plain text glyph replacing the status glyph, without changing the node's status tone.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.Marker = value; treeNode.Marker(value);public static TreeNode MarkerTone(TreeNode treeNode, Tone value) #Sets TreeNode.MarkerTone: An optional theme tone for the marker, independent of status semantics. Null preserves the status or text tone.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value ConsoleMonster.Tone
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.MarkerTone = value; treeNode.MarkerTone(value);public static TreeNode MeasureBareLabel(TreeNode treeNode, bool value = true) #Sets TreeNode.MeasureBareLabel: Include a bare node with values when sizing after-label value columns.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
treeNode.MeasureBareLabel = value; treeNode.MeasureBareLabel(value);public static TreeNode Presenter(TreeNode treeNode, ICellPresenter? value) #Sets TreeNode.Presenter: The presenter for TreeNode.Value, or null for automatic.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value ConsoleMonster.Presenters.ICellPresenter?
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.Presenter = value; treeNode.Presenter(value);public static TreeNode Reference(TreeNode treeNode, TreeReferenceKind value) #Sets TreeNode.Reference: Explicit reference and completeness markers. Cycle, repeat and collapse markers stop traversal.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value ConsoleMonster.Widgets.TreeReferenceKind
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.Reference = value; treeNode.Reference(value);public static TreeNode ReferenceSummary(TreeNode treeNode, string? value) #Sets TreeNode.ReferenceSummary: An optional plain text aggregate or reference detail shown with the marker.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.ReferenceSummary = value; treeNode.ReferenceSummary(value);public static TreeNode Status(TreeNode treeNode, StatusKind? value) #Sets TreeNode.Status: An optional status marker shown before the label.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value ConsoleMonster.Styling.StatusKind?
- The value.
Examples
// C# initializer or property // C# fluent
treeNode.Status = value; treeNode.Status(value);public static TreeNode TruncateLabelInMiddle(TreeNode treeNode, bool value = true) #Sets TreeNode.TruncateLabelInMiddle: Use a middle ellipsis for this identity label, independently of sibling prose labels.
Parameters
- treeNode ConsoleMonster.Widgets.TreeNode
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
treeNode.TruncateLabelInMiddle = value; treeNode.TruncateLabelInMiddle(value);public static TreeNode Value(TreeNode treeNode, TableCell? value) #Sets 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.
Examples
// C# initializer or property // C# fluent
treeNode.Value = value; treeNode.Value(value);