Skip to main content

PdfPageChangedEventArgs Class

Definition

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

Provides data for the Avalonia.Controls.PdfViewer.PageChanged event.

public class PdfPageChangedEventArgs

Inheritance: EventArgs -> PdfPageChangedEventArgs

Constructors

NameDescription
PdfPageChangedEventArgsInitializes a new instance of the Avalonia.Controls.PdfPageChangedEventArgs class.

PdfPageChangedEventArgs Constructor

Initializes a new instance of the Avalonia.Controls.PdfPageChangedEventArgs class.

public PdfPageChangedEventArgs(int oldPage, int newPage)

Parameters

oldPage int

newPage int

Properties

NameDescription
NewPageGets the 1-based page number that is now current.
OldPageGets the 1-based page number that was previously current (0 if none).

NewPage Property

Gets the 1-based page number that is now current.

public int NewPage { get; set; }

OldPage Property

Gets the 1-based page number that was previously current (0 if none).

public int OldPage { get; set; }