Options.SnapToGrid Property
True if AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in new documents.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim options1 As Options
Dim returnValue As Boolean
returnValue = options1.SnapToGrid
Dim sampleValue As Boolean
options1.SnapToGrid = sampleValue
Syntax
Property SnapToGrid() As Boolean
bool SnapToGrid {get; set;}
property Boolean SnapToGrid{
Boolean get();
Void set(Boolean);
}
public boolean get_SnapToGrid();
public void set_SnapToGrid(boolean);
function get SnapToGrid() : Boolean;
function set SnapToGrid(Boolean);
Remarks
You can temporarily override this setting by pressing ALT while drawing, moving, or resizing an AutoShape.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Options Interface
Microsoft.Office.Interop.Word Namespace