Share via


HierarchyInfo.Collapse Method

Definition

Hides the child nodes.

public:
 void Collapse();
public void Collapse ();
member this.Collapse : unit -> unit
Public Sub Collapse ()

Examples

The following example collapses the parent node.

void DemoCollapse()
{
    Parent.Collapse();
}

Remarks

An error will not occur if the Collapse method is called when the node has no child nodes or the node is not expanded.

Applies to