Collapse
This event occurs when a user collapses a Node object in a TreeView control.
Syntax
Private Sub treeview_Collapse(index)
Parameters
- treeview
- Object expression that evaluates to a TreeView control.
- index
- Index of the collapsed Node object.
Remarks
The Collapse event occurs before the standard Click event. There are three ways to collapse a Node object:
- Double-click the Node object.
- Set the Expanded property of the Node object to False.
- Choose a plus/minus image. For this option, the Style property of the TreeView control must be set to a style that includes plus/minus images.