Pane.DisplayRulers Property

Definition

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

public:
 property bool DisplayRulers { bool get(); void set(bool value); };
public bool DisplayRulers { get; set; }
member this.DisplayRulers : bool with get, set
Public Property DisplayRulers As Boolean

Property Value

Examples

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

<span class="label">With ActiveDocument.ActiveWindow.ActivePane 































































































































































































































































    .View.Type = wdPrintView 































































































































































































































































    .</span>
<span class="label">DisplayRulers</span>
<span class="label">= True    .DisplayVerticalRuler = TrueEnd With</span>

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.

Applies to