property Nodes.Count as Long
Returns the number of objects in a collection.

TypeDescription
Long A long expression that retrieves the number of elements in the collection.
The Count property gets the number of nodes in the collection. Use the Item property to access a Node object.

The following sample shows how to enumerate the nodes in the collection:

Dim n As EXMLGRIDLibCtl.Node
For Each n In XMLGrid1.Nodes
    Debug.Print n.Key
Next

or

Dim i As Long
With XMLGrid1.Nodes
    For i = 0 To .Count - 1
        Debug.Print .Item(i).Key
    Next
End With

The following sample enumerates all visible nodes in the control:

With XMLGrid1
    Dim n As EXMLGRIDLibCtl.Node, i As Long
    i = 0
    Set n = .NodeByPosition(i)
    While Not n Is Nothing
        Debug.Print n.Name
        i = i + 1
        Set n = .NodeByPosition(i)
    Wend
End With