VintaSoft Imaging .NET SDK 12.4: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebAnnotationCommentCollectionJS type / indexOf Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    indexOf Method
    In This Topic
    Returns an index of annotation comment in the collection.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.UI.WebAnnotationCommentCollectionJS(parent);
    
    var value; // Type: number
    
    // Parameters
    var comment; // Type: WebAnnotationCommentJS
    
    value = instance.indexOf(comment);
    
    
    function indexOf(
    comment
    An annotation comment that should be searched.
    : WebAnnotationCommentJS
    ) : number;

    Parameters

    comment
    An annotation comment that should be searched.

    Return Value

    The zero-based index of annotation comment in collection if collection contains comment; otherwise, null.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Browser Compatibility
    56+
    45+
    11
    See Also