treecombobox ImportFromTreeNodes method
Previous  Top  Next
Applies to
tcTreeComboBox component.  

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 tcTreeComboBox control with nodes from some TreeView)
tcTreeComboBox1.ImportFromTreeNodes(acTreeView1.Items);  

See also
ExportToTreeNodes and ImportFromTreeView methods.