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

TTreeNode.GetFirstVisibleChild

Gets the tree node that is the first visible child node in the subtree.

Declaration

Source position: comctrls.pp line 3083

public function TTreeNode.GetFirstVisibleChild: TTreeNode;

Description

GetFirstVisibleChild is a TTreeNode function used to get the tree node that is the first visible child node in the subtree.

GetFirstVisibleChild calls GetFirstChild to retrieve the first child node in Items. If the first child node is not visible, each of the TTreeNode instances in Items is examined after calling GetNextVisibleSibling.

The return value is the first TTreeNode instance with its Visible property set to True. The return value is Nil if no visible child node was found in Items.

Use GetLastVisibleChild to retrieve the last visible child node in Items.