Freigeben über


FlowDocumentReader.Zoom Eigenschaft

Definition

Ruft den aktuellen Zoomfaktor ab oder legt diese fest.

public:
 property double Zoom { double get(); void set(double value); };
public double Zoom { get; set; }
member this.Zoom : double with get, set
Public Property Zoom As Double

Eigenschaftswert

Der aktuelle Zoomfaktor, der als Prozentsatz interpretiert wird. Der Standardwert 100,0 (Zoomfaktor von 100%).

Beispiele

Das folgende Beispiel zeigt, wie das Zoom 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 die Zoom-Eigenschaft programmgesteuert festgelegt wird.

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 Standard-Benutzeroberfläche FlowDocumentReader (UI) enthält ein Zoomsteuerelement, das Schaltflächen zum Vergrößern oder Verkleinern des Zooms sowie einen Schieberegler zum Anpassen des Zoomfaktors bereitstellt. Die folgende Abbildung zeigt die Zoomsteuerelemente auf einer FlowDocumentReader Standard-Benutzeroberfläche.

FlowDocumentReader-Inhaltszoom

Der Zoomfaktor wird durch die Werte und MinZoomMaxZoom Eigenschaften eingeschränkt.

Informationen zur Abhängigkeitseigenschaft

Element Wert
Bezeichnerfeld ZoomProperty
Auf Metadateneigenschaften festgelegt true Nichts

Gilt für:

Weitere Informationen