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.
Syncfusion Feedback

Snap to Grid

Thread ID:





81959 May 25,2009 11:57 PM May 27,2009 02:49 PM Windows Forms 2
Tags: Diagram
Steven Mohnkern
Asked On May 25, 2009 11:57 PM

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 08:49 AM

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,

Steven Mohnkern
Replied On May 27, 2009 02:49 PM

Perfect. I missed that. Thanks once again.


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