Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

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)

Dim options1 As Options

Dim returnValue As Boolean
returnValue = options1.SnapToGrid

Dim sampleValue As Boolean
options1.SnapToGrid = sampleValue

bool SnapToGrid {get; set;}
public boolean get_SnapToGrid();
public void set_SnapToGrid(boolean);
function get SnapToGrid() : Boolean;
function set SnapToGrid(Boolean);

You can temporarily override this setting by pressing ALT while drawing, moving, or resizing an AutoShape.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms