FlowDocumentReader.MaxZoom 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 Zoom 允许的最大 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
Zoom 允许的最大 FlowDocumentReader 级别,以百分比表示。 默认值是 200.0(最大缩放比例为 200%)。
以下示例演示如何设置 MaxZoom 属性。
<FlowDocumentReader
IsFindEnabled="True"
IsPrintEnabled="True"
MinZoom="50" MaxZoom="1000"
Zoom="120" ZoomIncrement="5"
>
<FlowDocument>
<Paragraph>
Flow content...
</Paragraph>
</FlowDocument>
</FlowDocumentReader>
下面的示例演示如何以编程方式设置 MaxZoom 属性。
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
默认 FlowDocumentReader 用户界面 (UI) 包含可用于调整 Zoom 级别的滑块。 此属性指定滑块的 Zoom 上限值。
标识符字段 | MaxZoomProperty |
元数据属性设置为 true |
无 |
产品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |