Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Annotations.Designers)

SnapPointToGrid Method

Show in webframe
Point to snap.
Snaps the specified point to the container grid based on SnapToGridOptions.
Syntax
 function Leadtools.Annotations.Designers.AnnDesigner.snapPointToGrid( 
   position 
)

Parameters

ParameterTypeDescription
positionLeadPointDPoint to snap.

Return Value

TypeDescription
LeadPointD point snapped to the container grid based on SnapToGridOptions.
Remarks

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.

See Also

Reference

AnnDesigner Object
AnnDesigner Members

Error processing SSI file