Collapse Method (ITreeViewNode)
Collapses this tree node.
Remarks
There may be a slight delay when using this method due to the animation of the collapse operation. You should add a Sleep statement after this step to pause for the animation.

C# Syntax

void Collapse()