Type | Description | |||
Nodes | A Nodes object that holds the control's nodes collection. |
The following VB sample enumerates the nodes in the control ( including the child nodes ):
Private Sub enumerate(ByVal x As EXMLGRIDLibCtl.XMLGrid) With x.Nodes Dim i As Long For i = 0 To .Count - 1 enumNodes .ItemByPosition(i) Next End With End Sub Private Sub enumNodes(ByVal n As EXMLGRIDLibCtl.node) Dim c As EXMLGRIDLibCtl.node Debug.Print n.Name Set c = n.FirstNode While Not c Is Nothing enumNodes c Set c = c.NextNode Wend End Sub
The enumerate function enumerates the root nodes in the control. The enumNodes function enumerates recursively the child nodes for each node.