Window.DisplayVerticalRuler Property (Word)

True if a vertical ruler is displayed for the specified window or pane. Read/write Boolean.

Syntax

expression .DisplayVerticalRuler

expression A variable that represents a Window object.

Remarks

A vertical ruler appears only in print layout view, and only if the DisplayRulers property is set to True.

Example

This example switches each window in the Windows collection to print layout view and displays the horizontal and vertical rulers.

Dim winLoop As Window 
 
For Each winLoop In Windows 
 With winLoop 
 .View.Type = wdPrintView 
 .DisplayRulers = True 
 .DisplayVerticalRuler = True 
 End With 
Next winLoop

This example hides the horizontal and vertical rulers for the active window.

With ActiveDocument.ActiveWindow 
 .DisplayVerticalRuler = False 
 .DisplayRulers = False 
End With

See Also

Concepts

Window Object Members

Window Object