FlowDocumentPageViewer.MinZoom Vlastnost

Definice

Získá nebo nastaví minimální povolenou Zoom úroveň pro FlowDocumentPageViewer.

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

Hodnota vlastnosti

Double

Minimální povolená úroveň přiblížení pro FlowDocumentPageViewer, interpretováno jako procento. Výchozí hodnota je 80,0 (minimální přiblížení 80 %).

Příklady

Následující příklad ukazuje, jak tuto vlastnost použít.

<FlowDocumentPageViewer
  MinZoom="50" MaxZoom="1000"
  Zoom="120" ZoomIncrement="5"
>
  <FlowDocument>
    <Paragraph>
      Flow content...
    </Paragraph>
  </FlowDocument>
</FlowDocumentPageViewer>
FlowDocumentPageViewer flowDocPageViewer = new FlowDocumentPageViewer();

// Set zoom between 50% and 1000%.
flowDocPageViewer.MinZoom = 50;
flowDocPageViewer.MaxZoom = 1000;
// Set the zoom increment to 5%.
flowDocPageViewer.ZoomIncrement = 5;
// Set the initial zoom to 120%.
flowDocPageViewer.Zoom = 120;

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

' Set zoom between 50% and 1000%.
flowDocPageViewer.MinZoom = 50
flowDocPageViewer.MaxZoom = 1000
' Set the zoom increment to 5%.
flowDocPageViewer.ZoomIncrement = 5
' Set the initial zoom to 120%.
flowDocPageViewer.Zoom = 120

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

Poznámky

Výchozí FlowDocumentPageViewer uživatelské rozhraní obsahuje posuvník, který lze použít k úpravě Zoom úrovně. Tato vlastnost určuje hodnotu nižšího limitu posuvníku.

Informace o vlastnosti závislosti

Pole identifikátoru MinZoomProperty
Vlastnosti metadat nastavené na true Žádné

Platí pro

Viz také