Share via


FlowDocumentReader.IsFindEnabled プロパティ

定義

Find ルーティング コマンドが有効かどうかを示す値を取得または設定します。

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

プロパティ値

Find ルーティング コマンドを有効にする場合は true。それ以外の場合は false。 既定値は、true です。

次の例は、 属性を設定する方法を IsFindEnabled 示しています。

<FlowDocumentReader
  IsFindEnabled="True"  
  IsPrintEnabled="True"
  MinZoom="50" MaxZoom="1000"
  Zoom="120" ZoomIncrement="5"
>
  <FlowDocument>
    <Paragraph>
      Flow content...
    </Paragraph>
  </FlowDocument>
</FlowDocumentReader>

次の例では、IsFindEnabled プロパティをプログラムで設定する方法を示しています。

FlowDocumentReader flowDocRdr = new FlowDocumentReader();

// Enable find...
flowDocRdr.IsFindEnabled = true;
// Enable printing...
flowDocRdr.IsPrintEnabled = true;
// Set zoom between 50% and 1000%.
flowDocRdr.MinZoom = 50;
flowDocRdr.MaxZoom = 1000;
// Set the zoom increment to 5%.
flowDocRdr.ZoomIncrement = 5;
// Set the initial zoom to 120%.
flowDocRdr.Zoom = 120;

FlowDocument flowDoc = new FlowDocument(new Paragraph(new Run("Flow content...")));
flowDocRdr.Document = flowDoc;
Dim flowDocRdr As New FlowDocumentReader()

' Enable find...
flowDocRdr.IsFindEnabled = True
' Enable printing...
flowDocRdr.IsPrintEnabled = True
' Set zoom between 50% and 1000%.
flowDocRdr.MinZoom = 50
flowDocRdr.MaxZoom = 1000
' Set the zoom increment to 5%.
flowDocRdr.ZoomIncrement = 5
' Set the initial zoom to 120%.
flowDocRdr.Zoom = 120

Dim flowDoc As New FlowDocument(New Paragraph(New Run("Flow content...")))
flowDocRdr.Document = flowDoc

注釈

既定の FlowDocumentReader ユーザー インターフェイス (UI) には、[検索] ダイアログを切り替える [ 検索 ] ボタンが含まれています。 次の図は、 の [検索] ダイアログと既定の FlowDocumentReader UI を示しています。

吹き出し付きのスクリーンショット: FlowDocumentReader

が の場合IsFindEnabled、[検索] ボタンは UI にFlowDocumentReader表示されません。false

依存プロパティ情報

識別子フィールド IsFindEnabledProperty
に設定されたメタデータ プロパティ true なし

適用対象

こちらもご覧ください