RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNode.Create Constructor

Creates an instance of TTreeNode.

Pascal
constructor Create(AOwner: TTreeNodes);
C++
__fastcall TTreeNode(TTreeNodes AOwner);

Call Create to instantiate a tree node at runtime. Nodes added to a tree view control at design time are created automatically. Use the methods of the TTreeNodes object instead to create nodes as part of an existing tree view.  

After calling the inherited constructor, Create sets the OverlayIndex and StateIndex properties to -1 and then sets the Owner property of the tree node to the AOwner TTreeNodes object. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!