Pane.DisplayRulers Property

Word Developer Reference

True if rulers are displayed for the specified pane. Read/write Boolean.

Syntax

expression.DisplayRulers

expression   A variable that represents a Pane object.

Remarks

The DisplayRulers property is equivalent to the Ruler command on the View menu. If DisplayRulers is False, the horizontal and vertical rulers won't be displayed, regardless of the state of the DisplayVerticalRuler property.

Example

This example switches the active pane to print layout view and displays the horizontal and vertical rulers.

Visual Basic for Applications
  With ActiveDocument.ActiveWindow.ActivePane
    .View.Type = wdPrintView
    .DisplayRulers = True
    .DisplayVerticalRuler = True
End With

See Also