Skip to main content

SelectAnnotationRange

Selects text in a document using a given annotation.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Syntax​

expression.SelectAnnotationRange(annotation);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
annotationRequiredTextAnnotationThe annotation selection object.

Returns​

This method doesn't return any data.

Example​

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