Vcl.ComCtrls.TCustomTreeView.CreateNode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CreateNode: TTreeNode; virtual;

C++

virtual TTreeNode* __fastcall CreateNode();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTreeView

Description

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

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.

See Also