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

TTreeNode.GetNextSibling

Returns the next node in the tree hierarchy at the same level as the current node.

Declaration

Source position: comctrls.pp line 3116

public function TTreeNode.GetNextSibling: TTreeNode;

Function result

TTreeNode instance which is the next node at the same level as the current node, or Nil if no other nodes are stored at the same level in the Parent.

Description

The internal member with the return value for the method is updated when the MoveTo method is called for the tree node. This occurs when the value in Index is modified. It is also updated when methods in TTreeNode are called to add or insert a tree node into the node list.

See also

TTreeNode.Index

  

Ordinal position for the node in its parent node.

TTreeNode.MoveTo

  

Relocates a node to the specified Destination node using the specified mode of attachment.

TTreeNodes.InternalAddObject

  

Creates or updates a tree node with the specified text and a pointer to data.

TTreeNodes.AddNode

  

Adds or inserts a tree node as a sibling to a specified relative node.

TTreeNodes.AddObject

  

Adds a node with the specified text and data at the same level as the sibling node.

TTreeNodes.Insert

  

Inserts a tree node with the specified text before the specified node.

TTreeNodes.InsertObject

  

Inserts a new tree node with the specified text and data just before the specified node.


Version 4.0 Generated 2025-05-03 Home