The method TreeNode.Collapse(Boolean) can be used to collapse a TreeNode and optionally its children.
The TreeView.CollapseAll() method collapses all the TreeNode objects, including all the descendant tree nodes in the TreeView control.
© 2024 Digcode.com