Contains extension methods for IHasTreeNodes.
Methods
public static TreeNode AddNode<T>(T obj, string markup)
Adds a tree node.
Parameters:
obj (T)The object to add the tree node to.
markup (string)The node's markup text.
Returns:
The added tree node.
public static TreeNode AddNode<T>(T obj, IRenderable renderable)
Adds a tree node.
Parameters:
obj (T)The object to add the tree node to.
renderable (IRenderable)The renderable to add.
Returns:
The added tree node.
public static TreeNode AddNode<T>(T obj, TreeNode node)
Adds a tree node.
Parameters:
obj (T)The object to add the tree node to.
node (TreeNode)The tree node to add.
Returns:
The added tree node.
public static void AddNodes<T>(T obj, string[] nodes)
Add multiple tree nodes.
Parameters:
obj (T)The object to add the tree nodes to.
nodes (string[])The tree nodes to add.
public static void AddNodes<T>(T obj, IEnumerable<string> nodes)
Add multiple tree nodes.
Parameters:
obj (T)The object to add the tree nodes to.
nodes (IEnumerable<string>)The tree nodes to add.
public static void AddNodes<T>(T obj, IRenderable[] nodes)
Add multiple tree nodes.
Parameters:
obj (T)The object to add the tree nodes to.
nodes (IRenderable[])The tree nodes to add.
public static void AddNodes<T>(T obj, IEnumerable<IRenderable> nodes)
Add multiple tree nodes.
Parameters:
obj (T)The object to add the tree nodes to.
nodes (IEnumerable<IRenderable>)The tree nodes to add.
public static void AddNodes<T>(T obj, TreeNode[] nodes)
Add multiple tree nodes.
Parameters:
obj (T)The object to add the tree nodes to.
nodes (TreeNode[])The tree nodes to add.
public static void AddNodes<T>(T obj, IEnumerable<TreeNode> nodes)
Add multiple tree nodes.
Parameters:
obj (T)The object to add the tree nodes to.
nodes (IEnumerable<TreeNode>)The tree nodes to add.