AnnotateParagraph
Adds annotations to the specified paragraph.
note
This functionality is available in paid ONLYOFFICE Docs editions.
Syntax
expression.AnnotateParagraph(data);
expression - A variable that represents an Api class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| data | Required | Object | Annotation data specifying what to annotate. | |
| data.type | Required | string | The type of annotation operation (e.g., "highlightText"). | |
| data.name | Optional | string | Optional name of the annotation. | |
| data.paragraphId | Required | string | ID of the paragraph being annotated. | |
| data.recalcId | Required | string | Paragraph recalculation ID. | |
| data.ranges | Optional | Object[] | Array of text ranges to highlight (for highlightText type). |
Returns
This method doesn't return any data.