THotPDF.SetLoadedAnnotationContents Method

替换选定已加载注释的 /Contents 字符串,并失效其所在页面的渲染缓存

该方法保留既有外观和富文本;仅修改 /Contents 不会重建 /AP

声明

procedure SetLoadedAnnotationContents(PageIndex, AnnotationIndex: Integer; const AContents: AnsiString);

单元

HPDFDoc

参数

名称用途
PageIndex目标页面的从零开始的索引
AnnotationIndex页面注释数组中目标注释的从零开始的索引
AContents要写入注释 Contents 条目的新文本字符串

返回值

该成员不返回值

使用注意事项

相关 API