Share via


FlowDocumentReader.IsFindEnabled Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob der weitergeleitete Befehl Find aktiviert ist, oder legt diesen fest.

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

Eigenschaftswert

Boolean

true, um den weitergeleiteten Befehl Find zu aktivieren, andernfalls false. Der Standardwert ist true.

Beispiele

Im folgenden Beispiel wird gezeigt, wie das IsFindEnabled Attribut festgelegt wird.

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

Das folgende Beispiel zeigt, wie Sie die IsFindEnabled Eigenschaft programmgesteuert festlegen.

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

Hinweise

Die Standardbenutzerschnittstelle FlowDocumentReader (UI) enthält eine Schaltfläche "Suchen ", mit der das Dialogfeld "Suchen" umgeschaltet wird. Die folgende Abbildung zeigt das Dialogfeld "Suchen" auf einer FlowDocumentReader Standard-Benutzeroberfläche.

Bildschirmabbildung mit Beschriftungen: FlowDocumentReader

Wenn dies der Fall IsFindEnabled ist false, wird die Schaltfläche "Suchen " auf der FlowDocumentReaderBenutzeroberfläche nicht angezeigt.

Informationen zur Abhängigkeitseigenschaft

Bezeichnerfeld IsFindEnabledProperty
Metadateneigenschaften auf true festgelegt Keine

Gilt für

Siehe auch