HierarchyInfo.Collapse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.