Language Reference Guide : System Classes : FrameExec Class : SnapToGrid Method
 
Share this page          
SnapToGrid Method
The SnapToGrid method snaps a field to the nearest grid point.
This method has the following syntax:
FrameExec.SnapToGrid([fieldtosnap = FormField])
This method snaps the field specified by the fieldtosnap parameter to the nearest grid point. If you do not specify a field, the system snaps all fields in the form to their nearest grid point. The GridX and GridY attributes determine the spacing between grid points.