New to Telerik UI for WPFStart a free 30-day trial

Classic tree node implementation.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Type Parameters:

TNode

The type of the node.

Syntax:

C#
public class TreeNode<TNode>

Inheritance: objectTreeNode<TNode>

Constructors

Initializes a new instance of the TreeNode<TNode> class.

C#
public TreeNode(TreeNode<TNode> parent, TNode data)
Parameters:parentTreeNode<TNode>

The parent.

dataTNode

The data.

Initializes a new instance of the TreeNode<TNode> class.

C#
public TreeNode(TreeNode<TNode> parent)
Parameters:parentTreeNode<TNode>

The parent.

Properties

Gets or sets the children of this node.

C#
public IList<TreeNode<TNode>> Children { get; set; }
Property Value:

The children.

Data

TNode

Gets or sets the data (payload).

C#
public TNode Data { get; set; }
Property Value:

The data.

Gets or sets the parent of this node.

C#
public TreeNode<TNode> Parent { get; set; }
Property Value:

The parent.