title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Presentation.SnapToGrid property (PowerPoint) |
vbapp10.chm583061 |
|
|
d0155913-cca5-c2ed-b1cc-6463a573ff49 |
06/08/2017 |
medium |
Determines whether to snap shapes to the gridlines in the specified presentation. Read/write.
expression. SnapToGrid
expression A variable that represents a Presentation object.
MsoTriState
The value of the SnapToGrid property can be one of these MsoTriState constants.
msoFalse |
msoTrue |
This example switches snapping shapes to the gridlines in the active presentation.
Sub ToggleSnapToGrid()
With ActivePresentation
If .SnapToGrid = msoTrue Then
.SnapToGrid = msoFalse
Else
.SnapToGrid = msoTrue
End If
End With
End Sub
[!includeSupport and feedback]