Share via


Presentation.GridDistance Property

PowerPoint Developer Reference

Sets or returns a Single that represents the distance between gridlines. Read/write.

Syntax

expression.GridDistance

expression   A variable that represents a Presentation object.

Return Value
Single

Example

This example displays the gridlines, and then specifies the distance between gridlines and enables the snap to grid setting.

Visual Basic for Applications
  Sub SetGridLines()
    Application.DisplayGridLines = msoTrue
    With ActivePresentation
        .GridDistance = 18
        .SnapToGrid = msoTrue
    End With
End Sub

See Also