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

I'dont want a line that I can move and change

Thread ID:

Created:

Updated:

Platform:

Replies:

140945 Nov 15,2018 10:52 AM UTC Nov 16,2018 06:10 AM UTC WinForms 2
loading
Tags: Diagram
Blanca Calderon
Asked On November 15, 2018 10:52 AM UTC

I don't want in any case that my lines could move if it is not in a straight movement. If they could move in other way for me it's not a line, it's other thing.

Always x coordenate up and down in the same place. 

Can you help me?

Attachment: Video_1542282478_7b54c992.zip

Blanca Calderon
Replied On November 15, 2018 12:39 PM UTC

I found this:

LineConnector line = new LineConnector(new PointF(100, 100), new PointF(400, 100));

//By setting false AllowMoveY for both HeadEndPoint and TailEndPoint it will draw a straight line. 

line.HeadEndPoint.AllowMoveY = false;
line.TailEndPoint.AllowMoveY = false;


But I want that a line (every line that I use) ALWAYS has allowmoveY disabled by default. How can I do it?


Ramya Thirugnanam [Syncfusion]
Replied On November 16, 2018 06:10 AM UTC

Hi Blanca, 
 
Requirement : Disable end point editing for all the line connector in application. 
 
We have created a simple sample to achieve your requirement. Please refer to the sample from the below link. 
 
Sample Link:
Lines-EndDragging
 
 
 
Regards, 
Ramya T 


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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;