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

In This Topic
    Zoom Property (Viewer)
    In This Topic
    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
    public float Zoom {get; set;}

    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