Class PageOrganizerZoomChangedEventArgs
Provides event data for the zoom level change event in the SfPdfViewer2 Page Organizer view.
Inherited Members
Namespace: Syncfusion.Blazor.SfPdfViewer
Assembly: Syncfusion.Blazor.SfPdfViewer.dll
Syntax
public class PageOrganizerZoomChangedEventArgs : EventArgs
Remarks
The PageOrganizerZoomChangedEventArgs class contains details about the previous and current zoom levels. Developers can use this information to track zoom changes and implement custom logic.
Examples
void OnPageOrganizerZoomChanged(PageOrganizerZoomChangedEventArgs args)
{
Console.WriteLine($"Zoom changed from {args.PreviousZoom} to {args.CurrentZoom}");
}
Constructors
PageOrganizerZoomChangedEventArgs()
Declaration
public PageOrganizerZoomChangedEventArgs()
Properties
CurrentZoom
Gets or sets the current zoom level after the change in the SfPdfViewer2 Page Organizer view.
Declaration
public double CurrentZoom { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A |
Remarks
This property holds the zoom level that is currently active after the user adjusted the zoom in the Page Organizer. It can be used to update UI elements or trigger zoom-dependent logic.
Examples
void OnPageOrganizerZoomChanged(PageOrganizerZoomChangedEventArgs args)
{
Console.WriteLine($"Current Zoom: {args.CurrentZoom}");
}
PreviousZoom
Gets or sets the previous zoom level before the change in the SfPdfViewer2 Page Organizer view.
Declaration
public double PreviousZoom { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A |
Remarks
This property holds the zoom level that was active before the user adjusted the zoom in the Page Organizer. It can be used to compare with the new zoom level and implement logic based on zoom transitions.
Examples
void OnPageOrganizerZoomChanged(PageOrganizerZoomChangedEventArgs args)
{
Console.WriteLine($"Previous Zoom: {args.PreviousZoom}");
}