Flexible TreeView Flexible TreeView


Support & Community

Children nodes

Previous Table of Contents Next
Every node stores all children nodes in the Nodes property. To add or remove a child node you have two options:
  • using the Nodes property to add or remove children nodes;
  • using the childNode.AttachTo(parentNode) method to add child node to the specified parent.

Example:

Node n1 = new Node(“1”);
 
Node n2 = new Node(“2”);
n2.AttachTo(n1);
 
Node n3 = new Node(“3”);
n2.Nodes.Add(n3);


Additional API reference

Properties

  • AllNodes — all children nodes list including all nested nodes;
  • ExpandedNodes — enumerates all expanded children nodes;
  • HasChildren — defines whether a node has children nodes;
  • ChildrenCount — returns children nodes count;
  • AllChildrenCount – returns all children nodes count including all nested nodes;
  • ExpandedChildrenCount — returns expanded children nodes count. If node isn`t expanded, it returns 0;
  • AllExpandedChildrenCount — equivalent to the ExpandedChildrenCount property, but returns children nodes count even for collapsed nodes.

Previous Top Next


Last news
Bookmark and Share
Use Flexible TreeView in WPF project
Sunday, 18 December 2011

Do you have a WPF project and want to use Flexible TreeView there? No problem!

Flexible TreeView v3.4
Friday, 16 December 2011

Flexible TreeView v3.4 maintenance release has been released.

Flexible TreeView v3.3
Friday, 23 September 2011

Flexible TreeView v3.3 maintenance release has been released. Separate assemblies for .NET 2.0, 4.0 and 4.0 Client Profile, HTML markup extension, etc.

Latest release

Version:
Release date:
3.4
Dec 16, 2011


Copyright © 2006-2012 ARMSoft. All rights reserved.