Share via


_Document.SnapToGrid Property

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.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property SnapToGrid As Boolean
    Get
    Set
'Usage
Dim instance As _Document
Dim value As Boolean

value = instance.SnapToGrid

instance.SnapToGrid = value
bool SnapToGrid { get; set; }

Property Value

Type: System.Boolean

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.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace