TreeList.AllNodesCount Property

Returns the total number of nodes within the TreeList.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.1.dll


public int AllNodesCount { get; }

Property Value

Type Description

An integer value indicating the total number of nodes.


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