In This Topic
Reference Guides / JavaScript API / Actions / Document / GetCurrentSearchOccurrenceIdx

GetCurrentSearchOccurrenceIdx

In This Topic
 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).