Reference Guide
Reference Guides / JavaScript API / Annotations / SelectAnnot
In This Topic
    SelectAnnot
    In This Topic
     SelectAnnot

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

    Calling this method will automatically select the corresponding page.

    SelectAnnot: function (docuViewareID, annotID, ensureVisibility)

    Parameters

    docuViewareID
    The identifier for the DocuVieware™ instance you want to select the specified annotation item.
    annotID
    A string that represents the identifier of then annotation you want to ensure visibility of.
    ensureVisibility
    An optional boolean specifying if the annotation must be visible within the viewer, scrolling the contents of the control if necessary.

    Return Value

    1 if error, 0 if success.