Skip to main content

RemoveAnnotationRange

Remove a specific annotation range from the document.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Syntax​

expression.RemoveAnnotationRange(annotation);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
annotationRequiredTextAnnotationThe annotation removing object.
annotation.allOptionalbooleanfalseOptional parameter, flag to remove all annotations for the current paragraph.

Returns​

This method doesn't return any data.

Example​

window.Asc.plugin.executeMethod("RemoveAnnotationRange", [{
paragraphId: "p1",
rangeId: "a1",
name: "grammar"
}]);