Condividi tramite


FlowDocumentReader.MinZoom Proprietà

Definizione

Ottiene o imposta il livello minimo consentito Zoom per l'oggetto FlowDocumentReader.

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à

Livello minimo consentito Zoom per , FlowDocumentReaderinterpretato come percentuale. Il valore predefinito è 80,0 (zoom minimo di 80%).

Esempio

Nell'esempio seguente viene illustrato come impostare l'attributo MinZoom .

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

Nell'esempio seguente viene illustrato come impostare la proprietà MinZoom a livello di codice.

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

Commenti

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

Informazioni sulle proprietà di dipendenza

Elemento Valore
Campo Identificatore MinZoomProperty
Proprietà dei metadati impostate su true Nessuno

Si applica a

Vedi anche