Class
TreeNode<TNode>

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:

cs-api-definition
public class TreeNode<TNode>

Inheritance: objectTreeNode<TNode>

Constructors

TreeNode(TreeNode<TNode>)

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

Declaration

cs-api-definition
public TreeNode(TreeNode<TNode> parent)

Parameters

parent

TreeNode<TNode>

The parent.

TreeNode(TreeNode<TNode>, TNode)

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

Declaration

cs-api-definition
public TreeNode(TreeNode<TNode> parent, TNode data)

Parameters

parent

TreeNode<TNode>

The parent.

data

TNode

The data.

Properties

Children

Gets or sets the children of this node.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public IList<TreeNode<TNode>> Children { get; set; }

Property Value

IList<TreeNode<TNode>>

The children.

Data

Gets or sets the data (payload).

Declaration

cs-api-definition
public TNode Data { get; set; }

Property Value

TNode

The data.

Parent

Gets or sets the parent of this node.

Declaration

cs-api-definition
public TreeNode<TNode> Parent { get; set; }

Property Value

TreeNode<TNode>

The parent.