FlowDocumentReader.MaxZoom Tulajdonság

Definíció

Lekéri vagy beállítja a maximálisan engedélyezett Zoom szintet a FlowDocumentReader.

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

Tulajdonság értéke

A százalékos értékként értelmezett maximális megengedett Zoom szint FlowDocumentReader. Az alapértelmezett érték 200,0 (legfeljebb 200%).

Példák

Az alábbi példa bemutatja, hogyan állíthatja be az MaxZoom attribútumot.

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

Az alábbi példa bemutatja, hogyan állíthatja be a MaxZoom tulajdonságot programozott módon.

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

Megjegyzések

Az alapértelmezett FlowDocumentReader felhasználói felület (UI) tartalmaz egy csúszkát, amely a szint beállításához Zoom használható. Ez a tulajdonság a csúszka felső korlátértékét Zoom adja meg.

Függőségi tulajdonság adatai

Termék Value
Azonosító mező MaxZoomProperty
Metaadat-tulajdonságok beállítása: true Nincs

A következőre érvényes:

Lásd még