DxViewer.Zoom Property
Gets or sets the zoom level.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.Viewer.dll
NuGet Package: DevExpress.Blazor.Viewer
Declaration
Property Value
Type | Description |
---|---|
Double | The zoom level value. |
Remarks
The following code gets the zoom level after it is increased by 15%:
await reportViewer.UpdateZoomAsync(15);
double currentZoomLevel = reportViewer.Zoom;
The following code sets the zoom level to 125%:
<div @ref="viewerComponent" style="width: 100%; height: 100%;">
<DxReportViewer @ref="reportViewer"
Zoom="1.25"
Report="Report" />
</div>
Use constants to set the zoom level to PageWidth and WholePage. The following snippet sets the zoom level to Page Width:
@using DevExpress.Blazor.Reporting.Models
@*...*@
<DxReportViewer @ref="reportViewer" Report="Report" Zoom=ZoomConstants.PageWidth/>
See Also