LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
EnableSnapToGrid Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomation Class : EnableSnapToGrid Property



The EnableSnapToGrid Property supports WPF/Silverlight.

The EnableSnapToGrid Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets a value to determine whether snapping to grid is enabled for this AnnAutomation. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property EnableSnapToGrid As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomation
Dim value As Boolean
 
instance.EnableSnapToGrid = value
 
value = instance.EnableSnapToGrid
C# 
public bool EnableSnapToGrid {get; set;}
C++/CLI 
public:
property bool EnableSnapToGrid {
   bool get();
   void set (    bool value);
}

Property Value

true if snap to grid option is enabled for this AnnAutomation, otherwise; false. Default value is false.

Example

For C#/VB examples, refer to AnnSnapToGridOptions.

Remarks

This property will enable or disable the snap to grid options set in the AnnContainer.SnapToGridOptions property of the container in this AnnAutomation. It allows you to quickly enable/disable this feature by just changing this one property, by binding it to a user interface menu or check box item for instance.

This property will internally change the current AnnContainer.EnableSnapToGrid property.

For more information on snap to grid, refer to AnnSnapToGridOptions.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

EnableSnapToGrid requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.