Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.22
|
Leadtools.Annotations.Designers Assembly > Leadtools.Annotations.Designers Namespace > AnnDesigner Class : SnapPointToGrid Method |
public virtual LeadPointD SnapPointToGrid( LeadPointD position, bool clipToContainer )
'Declaration
Public Overridable Function SnapPointToGrid( _ ByVal position As LeadPointD, _ ByVal clipToContainer As Boolean _ ) As LeadPointD
'Usage
Dim instance As AnnDesigner Dim position As LeadPointD Dim clipToContainer As Boolean Dim value As LeadPointD value = instance.SnapPointToGrid(position, clipToContainer)
public virtual LeadPointD SnapPointToGrid( LeadPointD position, bool clipToContainer )
function Leadtools.Annotations.Designers.AnnDesigner.SnapPointToGrid( position , clipToContainer )
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.
Override this behavior by overriding the SnapPointToGrid method.