Snap to Grid

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

Thanks again

2 Replies

GM Gowri Manohari D Syncfusion Team 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



SM Steven Mohnkern May 27, 2009 06:49 PM UTC

Perfect. I missed that. Thanks once again.

Loader.
Up arrow icon