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

TTreeNode.GetNextVisible

Gets the next visible node.

Declaration

Source position: comctrls.pp line 3098

public function TTreeNode.GetNextVisible: TTreeNode;

Function result

Next node in the tree node navigation order, or Nil.

Description

GetNextVisible is a TTreeNode function used to get the next visible node for the current tree node.

If the current tree node is Expanded and Visible, the next node is the first visible child node. Otherwise, the next visible sibling node is used as the next node. If a sibling node does not exist, the Parent is searched for a visible sibling (next visible ancestor?).

The return value is Nil if a visible node is not found using the preceding logic, or when none of the ancestor nodes are visible and expanded.