InterfaceITree<T>
Interface
An interface for the tree data structure.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Type Parameters:
T
The type of elements in the tree.
Syntax:
cs-api-definition
public interface ITree<T>
Properties
Data
Gets the data held in this node.
Declaration
cs-api-definition
T Data { get; }
Property Value
T
The data.
Degree
Gets the degree of this node.
Height
Gets the height of this tree.
IsLeafNode
Gets a value indicating whether this instance is leaf node.
Declaration
cs-api-definition
bool IsLeafNode { get; }
Property Value
true if this instance is leaf node; otherwise, false.
Methods
Add(ITree<T>)
Adds the specified child to the tree.
FindNode(Predicate<T>)
Finds the node for which the given predicate holds true.
GetChild(int)
Gets the child at the specified index.
Remove(ITree<T>)
Removes the specified child.