Search
TreeEnumerator Class
Remarks See Also
 





Enables an easy standard method to itereate over the elements of a tree-like structure of objects.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public class TreeEnumerator : IEnumerator

Visual Basic  Copy Code

Public Class TreeEnumerator
    Implements IEnumerator

 Remarks

The TreeEnumerator class implements the standard .NET IEnumerator interface. It provides an easy method to iterate over the elements of a tree-like structure of diagram items.

 Example

The following example demonstrates how to use the TreeEnumerator:

C#  Copy Code

TreeEnumerator te = new TreeEnumerator(
    rootObj, false, false);

while (te.MoveNext())
{
    ShapeNode node = (ShapeNode)te.Current;
    node.Brush = Brushes.Blue;
}

Visual Basic  Copy Code

Dim te As MindFusion.Diagramming.TreeEnumerator = New MindFusion.Diagramming.TreeEnumerator( _
    rootObj, False, False)

While te.MoveNext()
    Dim node As ShapeNode = CType(te.Current, ShapeNode)
    Node.Brush = Brushes.Blue
End While

 Inheritance Hierarchy

System.Object
    MindFusion.Diagramming.Wpf.TreeEnumerator

 See Also