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

SetAnnotPropertiesToDisplay

In This Topic
 SetAnnotPropertiesToDisplay

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)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you want to reset the annotation properties from.
annotType
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.
annotProperties
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"]);