Class TreeNode<TNode>
Classic tree node implementation.
Inheritance
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class TreeNode<TNode> : Object
Type Parameters
TNode
The type of the node. |
Constructors
TreeNode(TreeNode<TNode>)
Initializes a new instance of the TreeNode<TNode> class.
Declaration
public TreeNode(TreeNode<TNode> parent)
Parameters
TreeNode<TNode>
parent
The parent. |
TreeNode(TreeNode<TNode>, TNode)
Initializes a new instance of the TreeNode<TNode> class.
Declaration
public TreeNode(TreeNode<TNode> parent, TNode data)
Parameters
TreeNode<TNode>
parent
The parent. |
TNode
data
The data. |
Properties
Children
Gets or sets the children of this node.
Declaration
public IList<TreeNode<TNode>> Children { get; set; }
Property Value
System.Collections.Generic.IList<TreeNode<TNode>>
The children. |
Data
Gets or sets the data (payload).
Declaration
public TNode Data { get; set; }
Property Value
TNode
The data. |
Parent
Gets or sets the parent of this node.
Declaration
public TreeNode<TNode> Parent { get; set; }
Property Value
TreeNode<TNode>
The parent. |