### Show Root Node

To show the root node of a TreeView use a JavaObject
Example Sub
'Show the Root Node of a TreeView
'Example: ShowRootNode(TreeView1)
`Sub ShowRootNode(tv As TreeView)
Private JO As JavaObject = tv
JO.RunMethod("setShowRoot",Array As Object(True))
End Sub`
Show the Root Node with All TreeView Items Expanded
`Sub Process_Globals
Private TreeView1 As TreeView
...
End Sub`
ShowRootNode(TreeView1)
ExpandAllItems(TreeView1.Root)
`Sub ShowRootNode(tv As TreeView)
Private JO As JavaObject = tv
JO.RunMethod("setShowRoot",Array As Object(True))
End Sub`
`Sub ExpandAllItems(ti As TreeItem)
For Each tii As TreeItem In ti.Children
tii.Expanded = True
ExpandAllItems(tii)
Next
End Sub`

Changed: , Category: TreeView, File: T6C272M2027.htm, ID: 2027