向 PowerPoint 演示文稿添加文本标记、形状、水印和评论。

使用 C# 注释 PowerPoint 演示文稿

以编程方式添加和管理 Microsoft PowerPoint 演示文稿中的注释 — 无需安装 Office。

如何在 C# 中注释 PowerPoint 演示文稿

GroupDocs.Annotation for .NET 让注释 PowerPoint 演示文稿变得轻松:

  1. 使用 Annotator 实例打开 PowerPoint 文件。
  2. 创建并配置所需的注释。
  3. 将注释添加到演示文稿中。
  4. 保存已注释的 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");
}
dotnet add package GroupDocs.Annotation
点击复制
已复制
更多示例 文档

全面控制 PowerPoint 注释

向 PowerPoint 演示文稿添加所有注释类型,并使用简洁的 API 进行管理。

注释 PowerPoint 演示文稿

文本标记

在 PowerPoint 文件中突出显示、下划线、删除线或替换文本。

形状和水印

在 PowerPoint 幻灯片上绘制形状并添加水印或图像。

管理批注

获取、删除、导入和导出 PowerPoint 批注。

读取 PowerPoint 批注

检索已注释的 PowerPoint 演示文稿中存储的批注:

C#

//  打开已注释的演示文稿
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");
}
dotnet add package GroupDocs.Annotation
点击复制
已复制
更多示例 文档

注释 PowerPoint 文件

GroupDocs.Annotation for .NET 让您能够在 Microsoft PowerPoint 演示文稿中添加、编辑和删除注释。突出显示文本、绘制形状、添加水印和图像,并附加线程评论 — 然后将结果保存为原始 PowerPoint 格式。
了解更多
About illustration

准备好开始了吗?

免费下载 GroupDocs.Annotation 或获取试用许可证以获得完全访问权限!

有用的资源

探索文档,代码样本和社区支持,以增强您的体验。

注释其他文件格式

GroupDocs.Annotation for .NET 支持在多种文件格式上进行文档批注:

临时许可提示

1
使用您的工作电子邮件地址进行注册。不允许使用免费邮件服务。
2
使用第二步中的获取临时许可证按钮。
 中国人