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 > AnnEditDesigner Class : SnapObjectToGrid Method |
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 )
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.