跳到主要内容

RemoveAnnotationRange

从文档中移除特定的注解范围。

备注

此功能在 ONLYOFFICE Docs 付费版本中可用。

语法

expression.RemoveAnnotationRange(annotation);

expression - 表示 Api 类的变量。

参数

名称必需/可选数据类型默认值描述
annotation必需TextAnnotation注解移除对象。
annotation.all可选booleanfalse可选参数,用于移除当前段落所有注解的标志。

返回值

此方法不返回任何数据。

示例

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