Table of contents
TOC
Collapse the table of content
Expand the table of content

Presentation.GridDistance Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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.

Sub SetGridLines()

    Application.DisplayGridLines = msoTrue

    With ActivePresentation

        .GridDistance = 18

        .SnapToGrid = msoTrue

    End With

End Sub

See also

Concepts

Presentation Object

© 2018 Microsoft