FlowDocumentPageViewer.MinZoom Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Hämtar eller anger den lägsta tillåtna Zoom nivån för 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
Egenskapsvärde
Den minsta tillåtna zoomnivån för FlowDocumentPageViewer, tolkad som en procentandel. Standardvärdet är 80,0 (minst 80%).
Exempel
I följande exempel visas hur du använder den här egenskapen.
<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
Kommentarer
FlowDocumentPageViewer Standardgränssnittet (UI) innehåller ett skjutreglage som kan användas för att justera Zoom nivån. Den här egenskapen anger skjutreglagets lägre gränsvärde.
Information om beroendeegenskap
| Objekt | Value |
|---|---|
| Identifierarfält | MinZoomProperty |
Metadataegenskaper inställda på true |
Ingen |