FlowDocumentPageViewer.MinZoom 属性

定义

获取或设置 Zoom 允许的最小 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

属性值

Double

FlowDocumentPageViewer 的最小允许缩放级别,以百分比表示。 默认值为 80.0(最小缩放比例为 80%)。

示例

以下示例演示如何使用此属性。

<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

注解

默认 FlowDocumentPageViewer 用户界面 (UI) 包含可用于调整 Zoom 级别的滑块。 此属性指定滑块的下限值。

依赖项属性信息

标识符字段 MinZoomProperty
元数据属性设置为 true

适用于

另请参阅