Group: Forum Members
Last Active: 14 Years Ago
Posts: 13,
Visits: 1
|
I need the diagram to bound to my custom tree which is actually composed of nodes, and for each node, there is a list of nodes:
class MyNode { MyNode parent; List childrenList; int ID; ///Other data
}
How can it be done? I saw in your examples how to bind the diagram to .mdb file using NTreeDataSourceImporter, but i could not use it with my data structure. I also tried manually creating shapes and setting ActiveLayer.AddChild, but I don't want to handle the shapes coordinates my self, I have a feeling I miss somethig here.
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi, You can manually create the shapes and then apply an automatic layout on them, so you do not have to worry about coordinates. Please, take a look at the online documention for more information on the supported layouts. Focus on the topics in Diagram for .NET -> User's Guide -> Layouts.
Best Regards, Nevron Support Team
|