ViewRuler, ViewRuler()

Syntax

ViewRuler [On]

ViewRuler()

Remarks

The ViewRuler statement displays or hides the rulers. If the active document is in outline or master document view, an error occurs.

Argument

Explanation

On

Specifies whether to display or hide the rulers:

0 (zero) Hides the rulers.

1 Displays the rulers.

Omitted Toggles the rulers on and off.


The ViewRuler() function returns the following values.

Value

Explanation

0 (zero)

If the rulers are hidden

–1

If the rulers are displayed


See Also

ToolsOptionsView, ViewRibbon, ViewStatusBar, ViewToolbars