Share via


Application.DisplayGridLines Property (PowerPoint)

Determines whether to display gridlines in Microsoft PowerPoint. Read/write.

Syntax

expression .DisplayGridLines

expression A variable that represents a Application object.

Return Value

MsoTriState

Remarks

The value returned by the DisplayGridLines property can be one of these MsoTriState constants.

Constant

Description

msoFalse

Do not display gridlines.

msoTrue

Display gridlines.

Example

This example switches the display of the gridlines in PowerPoint.

Sub ToggleGridLines()

    With Application

        If .DisplayGridLines = msoTrue Then

            .DisplayGridLines = msoFalse

        Else

            .DisplayGridLines = msoTrue

        End If

    End With

End Sub

See Also

Concepts

Application Object

Application Object Members