System.Windows.Forms.TreeNode.GetNodeCount Method

Returns the number of child tree nodes.

Syntax

public int GetNodeCount (bool includeSubTrees)

Parameters

includeSubTrees
true if the resulting count includes all tree nodes indirectly rooted at this tree node; otherwise, false.

Returns

The number of child tree nodes assigned to the TreeNode.Nodes collection.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0