SnapToShapes Property

Microsoft Word Visual Basic

Document object: True if Microsoft Word automatically aligns AutoShapes or East Asian characters with invisible gridlines that go through the vertical and horizontal edges of other AutoShapes or East Asian characters in the specified document. Read/write Boolean.

Options object: True if Word automatically aligns AutoShapes or East Asian characters with invisible gridlines that go through the vertical and horizontal edges of other AutoShapes or East Asian characters in new documents. Read/write Boolean.

Remarks

This property creates additional invisible gridlines for each AutoShape. SnapToShapes works independently of the SnapToGrid property.

Example

This example sets Microsoft Word to automatically align East Asian characters with invisible gridlines that go through the vertical and horizontal edges of other East Asian characters in the current document.

ActiveDocument.SnapToShapes = True
		

This example sets Word to automatically align AutoShapes with invisible gridlines that go through the vertical and horizontal edges of other AutoShapes in a new document.

Options.SnapToShapes = True
Documents.Add