[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TTreeNodesEnumerator.MoveNext

Indicates if another tree node is available to the enumerator.

## Declaration

Source position: comctrls.pp line 3192

`public function TTreeNodesEnumerator.MoveNext: Boolean;`

## Function result

True when more tree nodes are available in the internal container.

## Description

MoveNext is a Boolean function which indicates if another tree node is available to the enumerator. MoveNext increments the internal position counter for the enumerator. The return value is True if the position counter is less than the number of entries in the internal TTreeNodes container (in the range 0..TTreeNodes.Count-1).

Use Current to access the TTreeNode instance when MoveNext returns True.

## See also

TTreeNodesEnumerator.Current |  | Gets the current tree node instance for the enumerator.
TTreeNodes.Count |  | Contains the number of tree nodes in the container.
TTreeNode |  | Implements a tree node displayed in a TTreeView control.