Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramLink (Read 3046 times)
Silvia88
Full Member
***
Offline


I Love MindFusion!

Posts: 121
Joined: Aug 31st, 2015
DiagramLink
Oct 29th, 2015 at 10:55am
Print Post  
Hi,
given two ShapeNode, is it possible to get the link among them?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLink
Reply #1 - Oct 29th, 2015 at 11:15am
Print Post  
If you mean in any direction unlike getLink(from,to) method from http://mindfusion.eu/Forum/YaBB.pl?num=1442411679 , you could still reuse it:

Code
Select All
DiagramLink linkAnyDir(DiagramNode node1, DiagramNode node2)
{
	DiagramLink link = getLink(node1, node2);
	if (link == null)
		link = getLink(node2, node1);
	return link;
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Silvia88
Full Member
***
Offline


I Love MindFusion!

Posts: 121
Joined: Aug 31st, 2015
Re: DiagramLink
Reply #2 - Oct 29th, 2015 at 12:52pm
Print Post  
Thank you very much  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint