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

    This function allows you to choose the annotation properties to display in the annotation properties dialog for a given annotation type.

    SetAnnotPropertiesToDisplay: function (docuViewareID, annotType, annotProperties)


    The identifier for the DocuVieware™ instance you want to reset the annotation properties from.
    An integer representing the annotation type you want to set the annotation properties for.
    The value has to be a member of the GdPictureAnnotationType enumeration.
    An array that contains the properties you want the annotation properties dialog to display.

    Return Value

    1 if error, 0 if success.

    Example of usage

    Here is how to call this method to select only a few properties for the rubber stamp annotation type:

    DocuViewareAPI.SetAnnotPropertiesToDisplay("DocuVieware1", 0, ["borderWidth", "fillColor", "fontName", "fontStyle", "foreColor", "opacity", "text"]);