Document.SnapToShapes Property
Gets or sets a value that indicates whether Microsoft Office 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 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 SnapToShapes As Boolean
bool SnapToShapes { get; set; }
Property Value
Type: System.Boolean
true if Microsoft Office Word automatically aligns AutoShapes or East Asian characters; otherwise, false.
Remarks
This property creates additional invisible gridlines for each AutoShape. SnapToShapes works independently of the SnapToGrid property.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.