Unit 'ComCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TTreeNodes.AddNode

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

Declaration

Source position: comctrls.pp line 3213

public function TTreeNodes.AddNode(

  Node: TTreeNode;

  Relative: TTreeNode;

  const S: string;

  Ptr: Pointer;

  Method: TNodeAttachMode

):TTreeNode;

Arguments

Node

  

Node added or inserted to the node tree for the relative node.

Relative

  

Tree node where the node will become a sibling.

S

  

Accessibility value for the tree node.

Ptr

  

Pointer to the accessibility data for the tree node.

Method

  

Method used to store the node: add or insert.

Function result

Tree node with an updated Parent node after the operation.