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: November 16, 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:





91988 Dec 11,2009 11:00 AM UTC Dec 23,2009 12:27 PM UTC WinForms 3
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.


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;


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


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.


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.




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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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