DocuVieware Reference Guide
GetCurrentSearchOccurrenceIdx
Reference Guides > JavaScript API > Actions > Operations > GetCurrentSearchOccurrenceIdx
 GetCurrentSearchOccurrenceIdx

This function returns the current search occurrence index for the active search in the currently loaded document for the specified DocuVieware™ viewer.

GetCurrentSearchOccurrenceIdx: function (docuViewareID)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance.

Return Value

-1 if no document loaded, no active search or no result found, the current search occurrence index otherwise (0 based).