Share via


Pane.DisplayVerticalRuler Property

True if a vertical ruler is 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 DisplayVerticalRuler As Boolean
    Get
    Set
'Usage
Dim instance As Pane
Dim value As Boolean

value = instance.DisplayVerticalRuler

instance.DisplayVerticalRuler = value
bool DisplayVerticalRuler { get; set; }

Property Value

Type: System.Boolean

Remarks

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

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

See Also

Reference

Pane Interface

Pane Members

Microsoft.Office.Interop.Word Namespace