Skip to main content
A newer version of this page is available. .

TreeList.AllNodesCount Property

Returns the total number of nodes within the TreeList.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.1.dll

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllNodesCount property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also