PDFView4NET WinForms Edition
PageNumber Property (PDFPageView)




O2S.Components.PDFView4NET Namespace > PDFPageView Class : PageNumber Property
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;}
[Category("PDF")]
[Description("Current page being displayed in the control")]
[DefaultValue("")]
public: __property int get_PageNumber();
public: __property void set_PageNumber( 
   int value
);
[Category("PDF")]
[Description("Current page being displayed in the control")]
[DefaultValue("")]
public:
property int PageNumber {
   int get();
   void set (    int value);
}

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 Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFPageView Class
PDFPageView Members