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

Declaration
procedure ImportFromTreeNodes(SourceTreeNodes: TTreeNodes;  
  SourceRootNode: TTreeNode = nil; TargetRootNode: TTreeNode = nil);  

Description
The ImportFromTreeNodes method used to copy the tree nodes from some container TTreeNodes object (i.e: standard TreeView or another TreeComboBox) to this TreeComboBox control.  

Example (demonstrates how to fill the acTreeComboBox control with nodes from some TreeView)
acTreeComboBox1.ImportFromTreeNodes(acTreeView1.Items);  

See also
ExportToTreeNodes and ImportFromTreeView methods.