GdPicture.NET.14.API
GdPicture14 Namespace / AnnotationManager Class / CurrentPage Property
Example





CurrentPage Property (AnnotationManager)
Gets the page number of the currently selected page of the document handled by this AnnotationManager object. The pages are numbered starting from 1.
Syntax
'Declaration
 
Public ReadOnly Property CurrentPage As Integer
 

Property Value

The current page number.
Remarks
Please note that the pages are numbered starting from 1. Likewise, you have to select the required page before starting any page related action with the handled document.
Example
Finding out the currently selected page in the handled document.
Using annotationManager As AnnotationManager = New AnnotationManager()
    annotationManager.InitFromFile("test.pdf")
    Dim message As String = "The number of pages: " + annotationManager.PageCount
    message = message + vbCrLf + "The current page: " + annotationManager.CurrentPage
    MessageBox.Show(message, "CurrentPage", MessageBoxButtons.OK, MessageBoxIcon.Information)
    annotationManager.Close()
End Using
See Also