RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.CreateNode Method

Creates a new TTreeNode instance with the TTreeNodes specified by Items as its Owner.

Pascal
function CreateNode: TTreeNode; virtual;
C++
virtual __fastcall TTreeNode CreateNode();

Do not call CreateNode in application code. The TTreeNodes object specified by the Items property uses this method in the implementation of its Add, AddFirst, AddChild, AddChildFirst, AddObject, AddObjectFirst, AddChildObject, and AddChildObjectFirst methods. To create a new node for the tree view, use one of these methods instead. These methods ensure that the node is inserted properly and its properties reflect its position in the tree view. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!