Error processing SSI file
(Leadtools.Annotations.Designers)

Show in webframe

SnapObjectToGrid Method (AnnEditDesigner)







An AnnObject to snap.
A Boolean value to specify if we want to clip the point to container bounds after snap or no.
Snaps the specified AnnObject to the container grid based on AnnSnapToGridOptions.
Syntax
public virtual void SnapObjectToGrid( 
   AnnObject targetObject,
   bool clipToContainer
)
'Declaration
 
Public Overridable Sub SnapObjectToGrid( _
   ByVal targetObject As AnnObject, _
   ByVal clipToContainer As Boolean _
) 
'Usage
 
Dim instance As AnnEditDesigner
Dim targetObject As AnnObject
Dim clipToContainer As Boolean
 
instance.SnapObjectToGrid(targetObject, clipToContainer)
public virtual void SnapObjectToGrid( 
   AnnObject targetObject,
   bool clipToContainer
)
 function Leadtools.Annotations.Designers.AnnEditDesigner.SnapObjectToGrid( 
   targetObject ,
   clipToContainer 
)

Parameters

targetObject
An AnnObject to snap.
clipToContainer
A Boolean value to specify if we want to clip the point to container bounds after snap or no.
Remarks

This is a generic method which snaps all the points of the object without changing the object's shape.

Some objects need special handling to keep their shape when snapping. You can override this behavior by overriding this method.

Requirements

Target Platforms

See Also

Reference

AnnEditDesigner Class
AnnEditDesigner Members

Error processing SSI file
Leadtools.Annotations.Designers requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features