SelectAnnotationRange
Selects text in a document using a given annotation.
Syntax
expression.SelectAnnotationRange(annotation);
expression - A variable that represents a Api class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| annotation | Required | TextAnnotation | The annotation selection object. |
Returns
This method doesn't return any data.
Example
window.Asc.plugin.executeMethod("SelectAnnotationRange", [{
paragraphId: "p1",
rangeId: "a1",
name: "grammar"
}]);