Sign in Join
FPDoc Onlineexperiment

TTreeNode.GetFirstSibling function

Member of TTreeNodepublicIn unit ComCtrls

Gets the first tree node at the same level in the tree.

Declaration

pascal
function GetFirstSibling: TTreeNode

Function result

First tree node at the same level.

Description

GetFirstSibling is a TTreeNode function which returns the first tree node at the same Level in the tree node hierarchy. The return value may be the same as the current class instance when it is the first (or only) node at the current Level.

When a Parent node has been assigned, its GetFirstChild method is used to get the return value. Otherwise, the internal linked list for the subtree is used to get the previous tree node as the return value.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.