In This Topic
Reference Guides / JavaScript API / Annotations / EnsureAnnotVisibility

EnsureAnnotVisibility

In This Topic
 EnsureAnnotVisibility

This function allows you to make sure an annotation is visible, using its identifier.

Calling this method will automatically select the corresponding page and display the part where the annotation is visible.

EnsureAnnotVisibility: function (docuViewareID, annotID, select)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you want to ensure the visibility of the specified annotation item.
annotID
A string that represents the identifier of then annotation you want to ensure visibility of.
select
An optional boolean to specify if the annotation should be selected or not.

Return Value

1 if error, 0 if success.