FlowDocumentScrollViewer.Zoom Property

 

Gets or sets the current zoom level.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

member Zoom : float with get, set

Property Value

Type: System.Double

The current zoom level, interpreted as a percentage. The default is 100.0 (a zoom level of 100%).

The zoom level is constrained by the values of the MinZoom and MaxZoom properties.

Identifier field

ZoomProperty

Metadata properties set to true

None

The following example shows how to set the Zoom attribute.

<FlowDocumentScrollViewer
  HorizontalScrollBarVisibility="Auto" 
  VerticalScrollBarVisibility="Auto" 
  IsSelectionEnabled="True" 
  IsToolBarVisible="True" 
  MinZoom="50" MaxZoom="1000"
  Zoom="120" ZoomIncrement="5"
>
  <FlowDocument>
    <Paragraph>
      Flow content...
    </Paragraph>
  </FlowDocument>
</FlowDocumentScrollViewer>

The following example shows how to set the Zoom property programmatically.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: