FlowDocumentPageViewer.Zoom 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 FlowDocumentPageViewer 的当前缩放级别。
public:
property double Zoom { double get(); void set(double value); };
public double Zoom { get; set; }
member this.Zoom : double with get, set
Public Property Zoom As Double
属性值
当前缩放级别,以百分比表示。 默认值为 100.0(缩放级别为 100%)。
示例
以下示例演示如何使用此属性。
<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
注解
依赖项属性信息
标识符字段 | ZoomProperty |
元数据属性设置为 true |
无 |