Nevron Forum

How to programmatically change the Snap To Grid anchors and nudging

https://www.nevron.com/Forum/Topic13185.aspx

By Ashley Davy - Tuesday, February 2, 2021

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 - Thursday, February 4, 2021

Hi,

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