Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.AllNodesCount Property

Returns the total number of nodes within the TreeList.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

[Browsable(false)]
public int AllNodesCount { get; }

#Property Value

Type Description
Int32

An integer value indicating the total number of nodes.

#Remarks

The TreeList control is designed to display nodes in a tree-like manner. It displays a number of first-level (root) nodes each of which can have a number of child nodes. Each child can have its own children, etc. Nodes can be expanded and collapsed in order to show or hide their child nodes respectively. Thus a node is visible if it is a root node or all its parent nodes are expanded.

Use the AllNodesCount property to obtain the total number of nodes in the TreeList control. If you want to obtain the number of visible nodes use the TreeList.VisibleNodesCount property instead.

See Also