Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to initiate a DiagramLink (Read 1043 times)
GoldyWang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 34
Joined: May 7th, 2012
How to initiate a DiagramLink
May 7th, 2012 at 12:42pm
Print Post  
I am a fresher, try this suite first-day. I want to know why...

These code effective:
DiagramLink link = diagram.Factory.CreateDiagramLink(n1, n2);

and Why code below does not work?
DiagramLink link = new DiagramLink(diagram);
link.Origin = n1;
link.Destination = n2;

I want to custom the DiagramLink, is there something important i should know when i do it?
  
Back to top
 
IP Logged
 
GoldyWang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 34
Joined: May 7th, 2012
Re: How to initiate a DiagramLink
Reply #1 - May 7th, 2012 at 12:47pm
Print Post  
wu.. it's my fault...

The code work now..
            DiagramLink link = new DiagramLink(diagram);
            link.Origin = n1;
            link.Destination = n2;
            diagram.Links.Add(link);
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint