FlowDocumentPageViewer.MinZoom Proprietà

Definizione

Ottiene o imposta il livello minimo di Zoom consentito per 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

Valore della proprietà

Il livello minimo consentito di zoom per FlowDocumentPageViewer, interpretato come una percentuale. L'impostazione predefinita è 80,0 (zoom minimo dell’80%).

Esempio

Nell'esempio seguente viene illustrato come utilizzare questa proprietà.

<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

Commenti

L'interfaccia utente predefinita FlowDocumentPageViewer include un dispositivo di scorrimento che può essere usato per regolare il Zoom livello. Questa proprietà specifica il valore limite inferiore per il dispositivo di scorrimento.

Informazioni proprietà di dipendenza

Campo Identificatore MinZoomProperty
Proprietà dei metadati impostate su true Nessuno

Si applica a

Vedi anche