How to programmatically change the Snap To Grid anchors and nudging


https://www.nevron.com/Forum/Topic13185.aspx
Print Topic | Close Window

By Ashley Davy - 3 Years Ago
I have Snap to Grid on and it snaps to every grid that is divisible by 10. Such as 10, 20, 30, 40, etc.   How would I change this so that it snaps at 5, 10, 15, 20, 25, 30.  Basically I would like it to snap to coordinates that are divisible by 5.   Also how would I change the behavior of the nudge buttons and keyboard arrows to match this behavior.

Thanks,
Ashley
By Nevron Support - 3 Years Ago
Hi,

You can control the nudge step through the drawingView.Settings.LargeNudgeStep propety. It is by default set to 10 DIPs (device independent pixels).