Binding diagram to cusom data


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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


yoav Roytenberg
yoav Roytenberg
Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)
Group: Forum Members
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search