We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Preventing a line from connecting to another shape?

Thread ID:

Created:

Updated:

Platform:

Replies:

92502 Jan 19,2010 04:35 AM UTC Sep 15,2010 04:11 PM UTC WinForms 2
loading
Tags: Diagram
Ron Alan Sawyer
Asked On January 19, 2010 04:35 AM UTC

Is there any way to prevent a line from connecting to other shapes? Is there a property that I can set that will prevent a line from connecting?

Thanks
Ron

Dinesh M [Syncfusion]
Replied On January 21, 2010 11:49 AM UTC

Hi Ron,

You can use the following event to prevent the line connector from connecting to a shape.

diagram1.Model.EventSink.ConnectionsChanging += new CollectionExEventHandler(EventSink_ConnectionsChanging);

void EventSink_ConnectionsChanging(CollectionExEventArgs evtArgs)
{
evtArgs.Cancel = true;
}

Regards,
Dinesh

Administrator [Syncfusion]
Replied On September 15, 2010 04:11 PM UTC

This example prevents any connection creating. How is it possible to allow the connection between to nodes, but after that, this exact connection could not be moved to another node or made disconnected from of of its nodes.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;