LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
EnableSnapToGrid Property
See Also 
Leadtools.Annotations Namespace > AnnContainer Class : EnableSnapToGrid Property



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 AnnContainer.

Syntax

Visual Basic (Declaration) 
Public Property EnableSnapToGrid As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnContainer
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 AnnContainer, otherwise; false. Default value is false.

Example

For an example, refer to AnnSnapToGridOptions.

Remarks

This property will enable or disable the snap to grid options set in the SnapToGridOptions property of this AnnContainer. 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.

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

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features