Pane.DisplayRulers Property
True if rulers are displayed for the specified pane. Read/write Boolean.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property DisplayRulers As Boolean
Get
Set
'Usage
Dim instance As Pane
Dim value As Boolean
value = instance.DisplayRulers
instance.DisplayRulers = value
bool DisplayRulers { get; set; }
Property Value
Type: System.Boolean
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.
Examples
This example switches the active pane to print layout view and displays the horizontal and vertical rulers.
With ActiveDocument.ActiveWindow.ActivePane
.View.Type = wdPrintView
.DisplayRulers= True .DisplayVerticalRuler = TrueEnd With