Pane.DisplayRulers 属性

定义

如此 如果在指定窗格中显示标尺。 读/写 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

属性值

示例

本示例将活动窗格切换到页面视图并显示水平和垂直标尺。

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































































































































































































































































    .View.Type = wdPrintView 































































































































































































































































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

注解

DisplayRulers 属性等效于在 视图菜单上的 标尺命令。 如果 DisplayRulers 的水平和垂直标尺将不会显示,而不考虑 DisplayVerticalRuler 属性的状态。

适用于