LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

EnableSnapToGrid Property (AnnAutomation)






Gets or sets a value to determine whether snapping to grid is enabled for this AnnAutomation. .NET support Silverlight support
Syntax
public bool EnableSnapToGrid {get; set;}
'Declaration
 
Public Property EnableSnapToGrid As Boolean
'Usage
 
Dim instance As AnnAutomation
Dim value As Boolean
 
instance.EnableSnapToGrid = value
 
value = instance.EnableSnapToGrid
public bool EnableSnapToGrid {get; set;}
 get_EnableSnapToGrid();
set_EnableSnapToGrid(value);
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.
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.

Example

For C#/VB examples, refer to AnnSnapToGridOptions.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnAutomation Class
AnnAutomation Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.