Document.SnapToGrid Property (2007 System)

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
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property SnapToGrid As Boolean
'Usage
Dim instance As Document 
Dim value As Boolean 

value = instance.SnapToGrid

instance.SnapToGrid = value
[BrowsableAttribute(false)]
public bool SnapToGrid { get; set; }
[BrowsableAttribute(false)]
public:
property bool SnapToGrid {
    bool get ();
    void set (bool value);
}
public function get SnapToGrid () : boolean 
public function set SnapToGrid (value : boolean)

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 Class

Document Members

Microsoft.Office.Tools.Word Namespace