MESCIUS.ActiveReports.Viewer.Wpf Assembly / GrapeCity.ActiveReports.Viewer.Wpf Namespace / Viewer Class / Zoom Property

Zoom Property (Viewer)
Gets or sets the viewer's zoom level. -1 for FitWidth mode -2 for Fit Whole Page mode. Throws ArgumentOutOfRangeException on invalid value.
Syntax
'Declaration
 
Public Property Zoom As Single
 

Property Value

A System.Single representing the zoom level.
Exceptions
ExceptionDescription
Thrown when the value is less than -2 or equal to 0.
Remarks
The zoom level of the viewer can be set to:
  • -1 indicates Fit Width mode,
  • -2 indicates Fit Whole Page mode,
  • A positive value indicates a specific zoom level (e.g., 1.0 for 100%).
The default value is 1.0.
See Also