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

Prevent to move the points of a PolylineConnector

Thread ID:

Created:

Updated:

Platform:

Replies:

91988 Dec 11,2009 11:00 AM UTC Dec 23,2009 12:27 PM UTC WinForms 3
loading
Tags: Diagram
Stephane Guerillot
Asked On December 11, 2009 11:00 AM UTC

Hi, long time no see.

In a Diagram, I use a PolylineConnector object composed with horizontal and vertical segments.

I want to prevent the user from moving the points defining a PolylineConnector, but allow him to move the segments. Is it possible to do this ? By setting a specific property, or catching an event during the change.

Thanks.

Dinesh M [Syncfusion]
Replied On December 16, 2009 02:09 PM UTC

Hi Stephane,

Please try the following code and let me know if it helps you.

PolyLineConnector plc;
plc.HeadEndPoint.AllowMoveX = false;
plc.HeadEndPoint.AllowMoveY = false;
plc.TailEndPoint.AllowMoveX = false;
plc.TailEndPoint.AllowMoveY = false;

Regards,
Dinesh

Stephane Guerillot
Replied On December 21, 2009 05:37 PM UTC

Hi,

Thank you for your answer, but it doesn't fit precisely what I want to do.

What I try to have is a bit particular.
We have, in a Diagram, blocs which are linked by PolylineConnectors. The connector is only composed of horizontal and vertical segments. We want to allow the user to edit the link between two blocs, but also keep the segments horizontal or vertical. So, he can't move a point of the connector, but only the segments.

In the attached example, the connector is composed of three segments. Only the second one could be moved, and the software will compute to translate the red points to the green position.

I know the OrthogonalConnector should be better. We used it before, but it has a strange behaviour. So we use the PolylineConnector instead.






links_77ca4329.zip

Dinesh M [Syncfusion]
Replied On December 23, 2009 12:27 PM UTC

Hi Stephane,

Currently it is not possible to achieve such a requirement with PolyLineConnector. Please let me know whether you tried using OrthogonalConnector along with LineRouting. For further details on line routing please refer the following online document.

http://help.syncfusion.com/ug_74/diagramwin/LineBridgingAndRouting.html

Regards,
Dinesh

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

;