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.
Unfortunately, activation email could not send to your email. Please try again.

¿the length of the line is always snapped to grid?

Thread ID:

Created:

Updated:

Platform:

Replies:

119521 Jul 3,2015 06:37 AM Jul 9,2015 11:47 PM Windows Forms 3
loading
Tags: Diagram
Blanca Calderon
Asked On July 3, 2015 06:37 AM

Hi,

When drawing lines, these fit the grid. Once drawn these can be moved outside the grid, but the length can not vary more than grid by grid.

My clients always complain about this and that it's so difficult create a line.

Could you help me?

Attachment: Video_1435926806_d00e0795.zip

Swarnesh Krishna Kumar [Syncfusion]
Replied On July 6, 2015 06:48 AM

Hi Blanca,
Thanks for using syncfusion products.
We suggest you to set the diagram’s view.Grid.SnapToGrid to false to avoid the variation of line’s length grid by grid.
Here is the code snippet:
Diagram1.View.Grid.SnapToGrid = false;
To extend the line away from the model we suggest you to set the Diagram Model’s BoundaryConstrainEnabled to false and set the Diagram Model’s SizeToContent to true.
Here is the code snippet:
diagram2.Model.BoundaryConstraintsEnabled = false;
diagram2.Model.SizeToContent = true;
Here is the Video:
Video
Here is the Sample:
Sample
Please let us know if any concerns.
Regards,
Swarnesh K




Blanca Calderon
Replied On July 8, 2015 04:32 AM

Hi Blanca,
Thanks for using syncfusion products.
We suggest you to set the diagram’s view.Grid.SnapToGrid to false to avoid the variation of line’s length grid by grid.
Here is the code snippet:
Diagram1.View.Grid.SnapToGrid = false;
To extend the line away from the model we suggest you to set the Diagram Model’s BoundaryConstrainEnabled to false and set the Diagram Model’s SizeToContent to true.
Here is the code snippet:
diagram2.Model.BoundaryConstraintsEnabled = false;
diagram2.Model.SizeToContent = true;
Here is the Video:
Video
Here is the Sample:
Sample
Please let us know if any concerns.
Regards,
Swarnesh K




Thank you!

Naganathan Ganesh Babu [Syncfusion]
Replied On July 9, 2015 11:47 PM

Hi Blanca,
 
Thanks for your update.
 
We are happy to assist with you and please let me know if you need further assistance.
 
Regards,
 
Naganathan K G

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.

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.

;