Vcl.ComCtrls.TTreeNodes.InsertNode

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function InsertNode(Node, Sibling: TTreeNode; const S: string;  Ptr: TCustomData): TTreeNode;

C++

TTreeNode* __fastcall InsertNode(TTreeNode* Node, TTreeNode* Sibling, const System::UnicodeString S, void * Ptr);

プロパティ

種類 可視性 ソース ユニット
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTreeNodes

説明

データを含んだツリー ノードを挿入します。

InsertNode を呼び出すと、Node の直前に Node パラメータの新しい兄弟を追加できます。S パラメータは、新しいノードの Text プロパティを示します。Ptr パラメータは、ノードに関連付けられたデータを示します。InsertNode は新しいノードを返します。

メモ:  ツリー ノード オブジェクトが解放されても、Ptr によって参照されるメモリは解放されません。

関連項目