_Document.SnapToGrid Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in the specified document.
public:
property bool SnapToGrid { bool get(); void set(bool value); };
public bool SnapToGrid { get; set; }
member this.SnapToGrid : bool with get, set
Public Property SnapToGrid As Boolean
Property Value
Remarks
This property returns True if AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in the specified document, and False if not. Set the property value to True or False to enable or disable the functionality.
You can temporarily override this setting by pressing ALT while drawing, moving, or resizing an AutoShape.