Adds a tree view item and sets its parent to the Parent tree view item. The new tree item is returned.
The text of the new tree view item is set to the Text parameter. The TagObject is set to the Data parameter.
Note |
---|
It is recommended that you use the methods provided by FMX.RS.TreeViewHelper|TTreeViewItemHelper and FMX.RS.TreeViewHelper|TTreeViewHelper instead. |
Namespace: FMX.RS.HelperFunctions
Delphi |
function AddChildTreeViewItem( const Tree: TCustomTreeView; const Parent: TTreeViewItem; |
Parameters
Tree
Type: TCustomTreeView
Parent
Type: TTreeViewItem
Text
Type: String
Data
Type: TObject
Type: TTreeViewItem
Reference•FMX.RS.HelperFunctions|AddChildTreeViewItem(TCustomTreeView,TTreeViewItem,string) •FMX.RS.HelperFunctions|AddChildTreeViewItem(TCustomTreeView,TTreeViewItem,string,string) •FMX.RS.HelperFunctions|FindTreeViewChildItem(TTreeViewItem,string) •FMX.RS.HelperFunctions|FindTreeViewChildItem(TTreeViewItem,string,TCompareStringsFunction) •FMX.RS.HelperFunctions.FindTreeViewChildItem(TTreeViewItem,TObject) •FMX.RS.HelperFunctions|FindTreeViewItem(TTreeView,string) •FMX.RS.HelperFunctions|FindTreeViewItem(TTreeView,string,TCompareStringsFunction) •FMX.RS.HelperFunctions.FindTreeViewItem(TTreeView,TObject) •TTreeViewHelper •TTreeViewItemHelper |