GroupDocs.Annotation for .NET 让注释 PowerPoint 演示文稿变得轻松:
- 使用 Annotator 实例打开 PowerPoint 文件。
- 创建并配置所需的注释。
- 将注释添加到演示文稿中。
- 保存已注释的 PowerPoint 文件。
GroupDocs.Annotation for .NET 让注释 PowerPoint 演示文稿变得轻松:
// 注释 PowerPoint 演示文稿
// 使用 Annotator 实例打开演示文稿
using (Annotator annotator = new Annotator("input.pptx"))
{
// 创建区域注释
AreaAnnotation area = new AreaAnnotation
{
Box = new Rectangle(100, 100, 200, 80),
BackgroundColor = 65535,
PageNumber = 0,
Message = "Important"
};
// 添加注释
annotator.Add(area);
// 保存已注释的演示文稿
annotator.Save("annotated.pptx");
}
向 PowerPoint 演示文稿添加所有注释类型,并使用简洁的 API 进行管理。

在 PowerPoint 文件中突出显示、下划线、删除线或替换文本。
在 PowerPoint 幻灯片上绘制形状并添加水印或图像。
获取、删除、导入和导出 PowerPoint 批注。
// 打开已注释的演示文稿
using (Annotator annotator = new Annotator("annotated.pptx"))
{
// 获取所有批注
List<AnnotationBase> annotations = annotator.Get();
// 检查每个批注
foreach (AnnotationBase annotation in annotations)
{
System.Console.WriteLine(annotation.Message);
}
// 保存演示文稿
annotator.Save("output.pptx");
}