The Collapse event occurs when any Node object in a TreeView control is collapsed.
Private Sub object_Collapse (node[index])
The Collapse event syntax has these parts:
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
node | A reference to the collapsed Node object. |
The Collapse event occurs before the standard Click event. There are three methods of collapsing a Node: by setting the Node object's Expanded property to False, by double-clicking a Node object, and by clicking a plus/minus image when the TreeView control's Style property is set to a style that includes plus/minus images. All of these methods generate the Collapse event.