New to Telerik UI for WinForms? Start a free 30-day trial

Describes data structures used for searching.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Type Parameters:

T

The data type.

Syntax:

C#
public interface ISearchTree<T> : IEnumerable

Inherited Members IEnumerable.GetEnumerator()

Properties

Gets the maximal item in the tree.

C#
T Maximum { get; }
Property Value:

The maximum item in the tree.

Gets the smallest item in the tree.

C#
T Minimum { get; }
Property Value:

The smallest item in the tree.

Exceptions: InvalidOperationException

The ISearchTree<T> is empty.

Methods

Performs a depth first traversal on the search tree.

C#
void DepthFirstTraversal(IVisitor<T> visitor)
Parameters:visitorIVisitor<T>

The visitor to use.

Exceptions: ArgumentNullException

visitor is a null reference (Nothing in Visual Basic).

Returns an enumerator that iterates through the collection.

C#
IEnumerator<T> GetOrderedEnumerator()
Returns:

IEnumerator<T>

A IEnumerator<T> that can be used to iterate through the collection.