Problem:
In the screenshot below, I have a node 300-9885-00X
along with its TreeNodeCollection (in the red square). A little bit lower, we find the 300-9885-00X
again, I want to insert the TreeNodeCollection that we found earlier, into that node ...
Background Information
I have a recursive program that goes through AutoCAD / SolidEdge assemblies. It opens the documents and prints the assemblies, and their children, and so on (recursively) ...
- Green color means it is printed
- Orange means it has already been printed before, so we don't need to print it again...
Question:
How do we insert an existing TreeNodeCollection into a TreeNode?
Knowing:
- The location of the TreeNodeCollection
- The location of the node in which I want to insert the collection into
The following variable TreeNodes
contains my collection. Must I loop through the collection in order to add its text?