PDFView4NET WinForms Edition


PageNumber Property (PDFPageView)
Gets or sets the page displayed in the control.
Syntax
'Declaration
 
<CategoryAttribute("PDF")>
<DescriptionAttribute("Current page being displayed in the control")>
<DefaultValueAttribute("")>
Public Property PageNumber As Integer
'Usage
 
Dim instance As PDFPageView
Dim value As Integer
 
instance.PageNumber = value
 
value = instance.PageNumber
[Category("PDF")]
[Description("Current page being displayed in the control")]
[DefaultValue("")]
public int PageNumber {get; set;}

Property Value

The number of the page displayed in the control.
Exceptions
ExceptionDescription
Thrown if value is less than 0 or greater than or equal to the number of pages in the document.
Remarks
The page number starts at 0 for first page. If there is no PDF file loaded in the control, the value is ignored.
Requirements

Target Platforms: Windows 7, Windows 10, Windows 11, Windows Server 2022, Windows Server 2025

See Also