Sign in Join
FPDoc Onlineexperiment

TTreeNode.GetLastSibling function

Member of TTreeNodepublicIn unit ComCtrls

Gets the last node at the same level as the current node.

Declaration

pascal
function GetLastSibling: TTreeNode

Function result

Last TTreeNode instance at the same level as the current node, or Nil if a sibling node is not found.

Description

If Parent has been assigned, the return value is set to the last child node in the Items for the Parent node. If the node is a top-level node (where Parent is unassigned), the value from GetNextSibling is used. The return value is Nil if a sibling node is not found for the current tree node.

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