web analytics
How to collapse a TreeNode and its children? Options
codeling
Posted: Monday, November 13, 2017 8:56:28 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 919
Points: 3861

The method TreeNode.Collapse(Boolean) can be used to collapse a TreeNode and optionally its children.

  • passing false value when want to collapse itself and its children
  • passing true value when you want to collapse a node but leave its child nodes in their expanded state.

 

Sponsor
Posted: Monday, November 13, 2017 8:56:28 AM
 
codeling
Posted: Monday, November 13, 2017 8:58:53 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 919
Points: 3861

The TreeView.CollapseAll() method collapses all the TreeNode objects, including all the descendant tree nodes in the TreeView control.

Users browsing this topic
Guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


© 2017 Digcode.com. All rights reserved.