GetRootNodes Method
Topic Last Modified: 2006-06-13
The GetRootNodes method obtains a collection of root nodes that have been added by the control.
Applies To
Syntax
Function GetRootNodes() As RootNodes
HRESULT GetRootNodes
(
_RootNodes** pVal
);
Parameters
- pVal
Returned reference to a _RootNodes Interface.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Use a RootNodes collection to iterate values of root nodes.
Example
The following example illustrates how to show the display name for each root node.
Dim rns As RootNodes
Dim rn As RootNode
Dim strMsg As String
Set rns = EXTV1.GetRootNodes
For Each rn In rns
strMsg = strMsg & rn.DisplayName & Chr(13)
MsgBox "Root Nodes: " & Chr(13) & strMsg