Recursively expands a specified item.
TreeView controls
treeviewname.ExpandAll ( itemhandle )
Argument |
Description |
---|---|
treeviewname |
The TreeView control in which you want to expand an item and all the subordinate items in its hierarchy |
itemhandle |
The handle of the item you want to expand |
Integer. Returns 1 if it succeeds and -1 if an error occurs.
To expand all levels in a TreeViewItem, use the ExpandAll function for the RootTreeItem.
This example expands all levels of a TreeView control:
long ll_tvi
ll_tvi = tv_list.FindItem(RootTreeItem! , 0)
tv_list.ExpandAll(ll_tvi)