←Select platform

SnapObjectToGrid Method (AnnEditDesigner)

Summary

Snaps the specified AnnObject to the container grid based on AnnSnapToGridOptions.

Syntax

C#
VB
WinRT C#
public virtual void SnapObjectToGrid(  
   Leadtools.Annotations.Core.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  
) 

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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Annotations.Designers Assembly
Click or drag to resize