Muokkaa

Jaa


Presentation.GridDistance property (PowerPoint)

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

Presentation Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.