function Leadtools.Annotations.Designers.AnnDesigner.snapPointToGrid( position )
Parameter | Type | Description |
---|---|---|
position | LeadPointD | Point to snap. |
Type | Description |
---|---|
LeadPointD | point snapped to the container grid based on SnapToGridOptions. |
This method will snap the input point to the nearest point determined by the container grid.
This method depends on EnableSnap property. If it is set to true, it will snap the specified point, otherwise this method will return the same values for the input point.
This method depends on the SnapToGridOptions values to calculate each grid cell and for snaping the specified point.
This method is called internally in ClipPoint method.
Override this behavior by overriding the SnapPointToGrid method.