getCurrentSelectionPage

Get the page number of the current selection.
getCurrentSelectionPage([out, retval] int *page)
This function returns the page number of the currently active selection.

This is the same value returned by getCurrentSelection2. The isCurrentSelection, getCurrentSelectionPage, getCurrentSelectionX0, getCurrentSelectionY0, getCurrentSelectionX1, and getCurrentSelectionY1 functions are intended to support environments that don't support output parameters (JavaScript in Internet Explorer).

VB:
Dim page As Long Dim x0 As Double, y0 As Double, x1 As Double, y1 As Double If viewer.isCurrentSelection() Then page = viewer.getCurrentSelectionPage() x0 = viewer.getCurrentSelectionX0() y0 = viewer.getCurrentSelectionY0() x1 = viewer.getCurrentSelectionX1() y1 = viewer.getCurrentSelectionY1() Clipboard.SetText(viewer.extractText(x0, y0, x1, y1)) End If
(This example is for illustration purposes - using copySelection is much simpler.)
getCurrentSelection2
setCurrentSelection2
isCurrentSelection
getCurrentSelectionX0
getCurrentSelectionY0
getCurrentSelectionX1
getCurrentSelectionY1
setSelectionColor
enableSelect
selectDone
copySelection