Skip to main content

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​

NameRequired/OptionalData typeDefaultDescription
dataRequiredObjectAnnotation data specifying what to annotate.
data.typeRequiredstringThe type of annotation operation (e.g., "highlightText").
data.nameOptionalstringOptional name of the annotation.
data.paragraphIdRequiredstringID of the paragraph being annotated.
data.recalcIdRequiredstringParagraph recalculation ID.
data.rangesOptionalObject[]Array of text ranges to highlight (for highlightText type).

Returns​

This method doesn't return any data.