isCurrentSelection

Check to see if there is a current selection.
isCurrentSelection([out, retval] VARIANT_BOOL *isSelection)
This function returns true if there is a 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).

VB6:
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
getCurrentSelectionPage
getCurrentSelectionX0
getCurrentSelectionY0
getCurrentSelectionX1
getCurrentSelectionY1
setCurrentSelection2
clearSelection
getSelectedText
copySelection
enableSelect
selectDone