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

Snap to Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

81959 May 26,2009 03:57 AM UTC May 27,2009 06:49 PM UTC WinForms 2
loading
Tags: Diagram
Steven Mohnkern
Asked On May 26, 2009 03:57 AM UTC

Another simple question. How do you turn off snap to grid or change the granularity of movement when draging a node?

Thanks again

Gowri Manohari D [Syncfusion]
Replied On May 26, 2009 12:49 PM UTC


Hi Steve,

Thanks for choosing Syncfusion Products.

The below is the code snippet for your requirement.In order to change the granularity of movement by set the Grid.HorizontalSpacing and Grid.VerticalSpacing property.Refer the below code for more details.

this.diagramComponent.View.Grid.SnapToGrid = false;
this.diagramComponent.View.Grid.HorizontalSpacing = 40;
this.diagramComponent.View.Grid.VerticalSpacing = 40;


Thanks & Regards,
Gowri


Steven Mohnkern
Replied On May 27, 2009 06:49 PM UTC

Perfect. I missed that. Thanks once again.

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

;