Click or drag to resize
BinaryTreeTData Class
Standard implementation of a binary tree.
Inheritance Hierarchy
SystemObject
  Telerik.Windows.Diagrams.CoreBinaryTreeTData

Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core (in Telerik.Windows.Diagrams.Core.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public class BinaryTree<TData> : ICollection<TData>, 
	IEnumerable<TData>, IEnumerable, ITree<TData>

Type Parameters

TData
The data type on which the tree is based.

The BinaryTreeTData type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAdd(TData)
Adds the given item to this tree.
Public methodAdd(BinaryTreeTData)
Public methodBreadthFirstTraversal
Performs a breadth first traversal on this tree with the specified visitor.
Public methodClear
Clears this tree of its content.
Public methodContains
Returns whether the given item is contained in this collection.
Public methodCopyTo
Copies the tree to the given array.
Public methodDepthFirstTraversal
Performs a depth first traversal on this tree with the specified visitor.
Public methodFind
Seeks the tree node containing the given data.
Protected methodFindMaximumChildHeight
Finds the maximum height between the child nodes.
Public methodFindNode
Finds the node with the specified condition. If a node is not found matching the specified condition, null is returned.
Public methodGetChild
Gets the left (index zero) or right (index one) subtree.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodRemove(TData)
Removes the specified item from the tree.
Public methodRemove(BinaryTreeTData)
Removes the specified child.
Public methodRemoveLeft
Removes the left child.
Public methodRemoveRight
Removes the left child.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddRangeTData(IEnumerableTData)Overloaded.
Adds the elements from the specified collection - items to the end of the target collection.
(Defined by CollectionExtensions.)
Public Extension MethodAddRangeTData(IEnumerableTData)Overloaded.
Adds the given range of items to the current collection.
(Defined by CommonExtensions.)
Public Extension MethodAppendTData(IEnumerableTData)Overloaded.
Appends elements from two sequences.
(Defined by CollectionExtensions.)
Public Extension MethodAppendTData(TData)Overloaded.
Appends an element to a sequence.
(Defined by CollectionExtensions.)
Public Extension MethodAppendTData(IEnumerableTData)Overloaded. (Defined by EnumerableExtensions.)
Public Extension MethodAppendTData(TData)Overloaded. (Defined by EnumerableExtensions.)
Public Extension MethodCastCovariantTData, TTo
Casts enumerable of TFrom to enumerable of TTo on platforms where covariance is not supported.
(Defined by ExtensionMethods.)
Public Extension MethodCloneTData
Clones the list.
(Defined by CommonExtensions.)
Public Extension MethodContainsAnyTData
Checks for the occurrence of the given items in the collection.
(Defined by CommonExtensions.)
Public Extension MethodForEachTData
Executes the action for each item in the collection.
(Defined by CommonExtensions.)
Public Extension MethodRemoveAllTData
Removes all elements from a collection that match the condition defined by the specified predicate.
(Defined by CollectionExtensions.)
Public Extension MethodTakeAfterTData
Bypasses elements from a sequence as long as a specified condition is true and then returns the remaining elements.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBeforeTData
Bypasses elements from a sequence until the specified condition becomes true.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBetweenTData(FuncTData, Boolean, FuncTData, Boolean)Overloaded.
Bypasses elements from a sequence as long as the first condition is false. Returns elements from the remaining elements as long the second condition is false.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBetweenTData(TData, TData)Overloaded.
Returns elements from a sequence as long as they are between the two items.
(Defined by CollectionExtensions.)
Public Extension MethodTakeFromTData(FuncTData, Boolean)Overloaded.
Bypasses elements from a sequence as long as a specified condition is false and then returns the element that satisfies the condition and the elements after.
(Defined by CollectionExtensions.)
Public Extension MethodTakeFromTData(TData)Overloaded.
Bypasses elements from a sequence as long as the element is not equal to the items in the sequence.
(Defined by CollectionExtensions.)
Public Extension MethodTakeToTData(FuncTData, Boolean)Overloaded.
Returns elements from a sequence as long as a specified condition is false. This method also returns the first element that satisfies the condition.
(Defined by CollectionExtensions.)
Public Extension MethodTakeToTData(TData)Overloaded.
Returns elements from a sequence as long as the sequence elements differs from the item.
(Defined by CollectionExtensions.)
Top
Properties
  NameDescription
Public propertyCount
Gets the number of children at this level, which can be at most two.
Public propertyData
Gets or sets the data of this tree.
Public propertyDegree
Gets the degree.
Public propertyHeight
Gets the height.
Public propertyIsComplete
Gets whether both sides are occupied, i.e. the left and right positions are filled.
Public propertyIsEmpty
Gets a value indicating whether this tree is empty.
Public propertyIsLeafNode
Gets whether this is a leaf node, i.e. it doesn't have children nodes.
Public propertyIsReadOnly
Returns false; this tree is never read-only.
Public propertyItem
Gets the BinaryTreeTData at the specified index.
Public propertyLeft
Gets or sets the left subtree.
Public propertyParent
Gets the parent of the current node.
Public propertyRight
Gets or sets the right subtree.
Public propertyRoot
Gets the root of the binary tree.
Top
See Also