TreeNode Class
Represents a tree node.
public sealed class TreeNode : IHasTreeNodes
- Namespace
- Spectre
.Console - Interfaces
Constructors
-
TreeNode
(IRenderable) -
Initializes a new instance of the
TreeNode
class.
Properties
Extension Methods
-
TreeNode AddNode
<TreeNode> (IRenderable) - Adds a tree node.
-
TreeNode AddNode
<TreeNode> (string) - Adds a tree node.
-
TreeNode AddNode
<TreeNode> (TreeNode) - Adds a tree node.
-
void AddNodes
<TreeNode> (IEnumerable <IRenderable> ) - Add multiple tree nodes.
-
void AddNodes
<TreeNode> (IEnumerable <string> ) - Add multiple tree nodes.
-
void AddNodes
<TreeNode> (IEnumerable <TreeNode> ) - Add multiple tree nodes.
-
void AddNodes
<TreeNode> (IRenderable[]) - Add multiple tree nodes.
-
void AddNodes
<TreeNode> (string[]) - Add multiple tree nodes.
-
void AddNodes
<TreeNode> (TreeNode[]) - Add multiple tree nodes.
-
TreeNode Collapse
() - Collapses the tree.
-
TreeNode Expand
(bool) - Sets whether or not the tree node should be expanded.
-
TreeNode Expand
() - Expands the tree.