Share via


Pane.DisplayRulers プロパティ

定義

True の 場合は、指定したウィンドウのルーラーが表示されます。 値の取得と設定が可能なブール型 (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 プロパティは、[ 表示] メニューの [ルーラーのコマンドと同じです。 DisplayRulersFalse の場合は、水平方向および垂直方向のルーラーは表示されません、 DisplayVerticalRuler プロパティの状態を無視します。

適用対象