Snaps the specified AnnObject to the container grid based on AnnSnapToGridOptions.
public virtual void SnapObjectToGrid(
AnnObject targetObject,
bool clipToContainer
)
Public Overridable Sub SnapObjectToGrid( _
ByVal targetObject As Leadtools.Annotations.Core.AnnObject, _
ByVal clipToContainer As Boolean _
)
public virtual void SnapObjectToGrid(
Leadtools.Annotations.Core.AnnObject targetObject,
bool clipToContainer
)
function Leadtools.Annotations.Designers.AnnEditDesigner.SnapObjectToGrid(
targetObject ,
clipToContainer
)
public:
virtual void SnapObjectToGrid(
AnnObject^ targetObject,
bool clipToContainer
)
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.
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.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET