Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Prevent self linking on shapes (Read 2230 times)
SL_developer
YaBB Newbies
*
Offline


coding rocks

Posts: 43
Joined: Jul 26th, 2011
Prevent self linking on shapes
Sep 5th, 2011 at 6:38am
Print Post  
Hi
How to prevent self linking on shapes?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Prevent self linking on shapes
Reply #1 - Sep 5th, 2011 at 6:48am
Print Post  
Hi,

Handle the LinkCreating validation event:

Code
Select All
private void OnLinkCreating(object sender, LinkValidationEventArgs e)
{
	e.Cancel = e.Origin == e.Destination;
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint