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

TTreeNodes.AddObject

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

Declaration

Source position: comctrls.pp line 3256

public function TTreeNodes.AddObject(

  SiblingNode: TTreeNode;

  const S: string;

  Data: Pointer

):TTreeNode;

Arguments

SiblingNode

  

Node which is a sibling for the newly created tree node. Provides access to the Parent node (when assigned).

S

  

Text for the new tree node.

Data

  

Pointer to the data for the new tree node.

Function result

TTreeNode instance created in the method.

See also

TTreeNodes.InternalAddObject

  

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



CT Web help

CodeTyphon Studio