Freigeben über


Document.SnapToGrid Property

Gets or sets a value that indicates whether AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in the document.

Namespace:  Microsoft.Office.Tools.Word
Assemblies:   Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Property SnapToGrid As Boolean
bool SnapToGrid { get; set; }

Property Value

Type: System.Boolean
true if AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in the document; otherwise, false.

Remarks

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

.NET Framework Security

See Also

Reference

Document Interface

Microsoft.Office.Tools.Word Namespace