Annotator

Annotator class

表示控制文档标注过程的主类。

public class Annotator : IDisposable

构造函数

姓名 描述
Annotator(Stream) 初始化接受文档 stream 的注释器类
Annotator(string) 初始化接受文档路径的注释器类
Annotator(Stream, AnnotatorSettings) 初始化接受文档 stream 的注释器类
Annotator(Stream, LoadOptions) 初始化接受文档 stream 的注释器类
Annotator(string, AnnotatorSettings) 初始化接受文档路径的注释器类
Annotator(string, LoadOptions) 初始化接受文档路径的注释器类
Annotator(Stream, LoadOptions, AnnotatorSettings) 初始化接受文档 stream 的注释器类
Annotator(string, LoadOptions, AnnotatorSettings) 初始化接受文档路径的注释器类

特性

姓名 描述
Document { get; } 文档
ProcessPages { get; set; } 文件页数
Rotation { get; set; } 文档旋转

方法

姓名 描述
Add(AnnotationBase) 向 document 添加注释
Add(List<AnnotationBase>) 将注释集合添加到文档。
Dispose() 处置
ExportAnnotationsFromXMLFile(string) 从 XML 文件中导出注释。
Get() 获取文档注释的集合。
Get(AnnotationType) 按注释类型获取文档注释集合。
GetVersion(object) 从版本中获取注释。
GetVersionsList() 获取版本。
ImportAnnotationsFromDocument(string) 将注释从文档导入 XML 文件。
Remove(AnnotationBase) 从文档中删除注释。
Remove(int) 按 Id 从文档中删除注释。
Remove(List<AnnotationBase>) 从文档中删除注释集合。
Remove(List<int>) 通过提供的注释 ID 从文档中删除注释集合。
Save() 添加、更新或删除注释后保存文档。
Save(SaveOptions) 添加、更新或删除注释后保存文档。
Save(Stream) 添加、更新或删除注释后保存文档。
Save(string) 添加、更新或删除注释后保存文档。
Save(Stream, SaveOptions) 添加、更新或删除注释后保存文档。
Save(string, SaveOptions) 添加、更新或删除注释后保存文档。
Update(AnnotationBase) 更新文档注释。
Update(List<AnnotationBase>) 更新文档注释集合。

也可以看看