DisplayRulers Property
Applies To
Pane object, Window object.
Description
True if rulers are displayed for the specified window or pane. Equivalent to the Ruler command on the View menu. Read/write Boolean.
Note If DisplayRulers is False, the horizontal and vertical rulers won't be displayed, regardless of the state of the DisplayVerticalRuler property.
See Also
DisplayVerticalRuler property.
Example
This example toggles the ruler display for the active window.
ActiveWindow.DisplayRulers = Not ActiveWindow.DisplayRulers
This example switches the window to page layout view and displays the horizontal and vertical rulers.
With ActiveWindow
.View.Type = wdPageView
.DisplayVerticalRuler = True
.DisplayRulers = True
End With