Search
TreeEnumerator Class
Remarks See Also
 





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

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 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 = new SolidBrush(Color.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 = New SolidBrush(Color.Blue)
End While

 Inheritance Hierarchy

System.Object
    MindFusion.Diagramming.TreeEnumerator

 See Also