Class TreeNodeList<T>
Holds methods for Tree node
Inheritance
System.Object
TreeNodeList<T>
Namespace: PnP.Framework.Diagnostics.Tree
Assembly: PnP.Framework.dll
Syntax
public class TreeNodeList<T> : List<ITreeNode<T>>, ITreeNodeList<T>
Type Parameters
T
Generic type |
Constructors
TreeNodeList(ITreeNode<T>)
Constructor
Declaration
public TreeNodeList(ITreeNode<T> parent)
Parameters
ITreeNode<T>
parent
Generic type parent node |
Properties
Parent
Gets or sets Parent node
Declaration
public ITreeNode<T> Parent { get; set; }
Property Value
ITreeNode<T>
|
Methods
Add(ITreeNode<T>)
Adds node to a tree
Declaration
public ITreeNode<T> Add(ITreeNode<T> node)
Parameters
ITreeNode<T>
node
Node to be added to the tree |
Returns
ITreeNode<T>
Returns TreeNode interface |
Implements
Add(ITreeNode<T>, Boolean)
Declaration
protected ITreeNode<T> Add(ITreeNode<T> node, bool updateParent)
Parameters
ITreeNode<T>
node
|
System.Boolean
updateParent
|
Returns
ITreeNode<T>
|
OnPropertyChanged(String)
Declaration
protected void OnPropertyChanged(string PropertyName)
Parameters
System.String
PropertyName
|
Remove(ITreeNode<T>)
Removes node from a tree
Declaration
public bool Remove(ITreeNode<T> node)
Parameters
ITreeNode<T>
node
Tree node to be removed from a tree |
Returns
System.Boolean
Returns status of Node removal from tree |
Remove(ITreeNode<T>, Boolean)
Declaration
protected bool Remove(ITreeNode<T> node, bool updateParent)
Parameters
ITreeNode<T>
node
|
System.Boolean
updateParent
|
Returns
System.Boolean
|
ToString()
Retuns count of child nodes as a string
Declaration
public override string ToString()
Returns
System.String
Retuns count of child nodes as a string |
Events
PropertyChanged
Reprensets PropertyChangedEventHandler on a tree node
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
PropertyChangedEventHandler
|