Represents a tree node.
Constructors
public TreeNode(IRenderable renderable)
Initializes a new instance of the TreeNode class.
Parameters:
renderable (IRenderable)The tree node label.
Properties
Expanded
: boolGets or sets a value indicating whether or not the tree node is expanded or not.
Nodes
: List<TreeNode>Gets the tree node's child nodes.
Extension Methods
TreeNode Collapse(this TreeNode node)Collapses the tree.
Returns:
The same instance so that multiple calls can be chained.
TreeNode Expand(this TreeNode node)Expands the tree.
Returns:
The same instance so that multiple calls can be chained.
TreeNode Expand(this TreeNode node, bool expand)Sets whether or not the tree node should be expanded.
Returns:
The same instance so that multiple calls can be chained.