treecombobox ExportToTreeNodes method
Return to Introduction  Previous page  Next page
Applies to
acTreeComboBox and acTreeView components.  

Declaration
procedure ExportToTreeNodes(TargetTreeNodes: TTreeNodes;  
  SourceRootNode: TTreeNode = nil; TargetRootNode: TTreeNode = nil);  

Description
The ExportToTreeNodes method used to copy the tree nodes from current TreeCombBox to another container TTreeNodes object (i.e: standard TreeView or another TreeComboBox).  

Example (demonstrates how to fill the TreeView with nodes from TreeComboBox)
acTreeComboBox1.ExportToTreeNodes(acTreeView1.Items);  

See also
ImportFromTreeNodes and ImportFromTreeView methods.