GroupDocs.Annotation for .NET は DOCX ドキュメントへの注釈付けを簡単にします:
- Annotator インスタンスで DOCX を開きます。
- 必要な注釈を作成し、構成します。
- 注釈をドキュメントに追加します。
- 注釈付き DOCX を保存します。
GroupDocs.Annotation for .NET は DOCX ドキュメントへの注釈付けを簡単にします:
// DOCX ドキュメントに注釈を付ける
// Annotator インスタンスで DOCX を開く
using (Annotator annotator = new Annotator("input.docx"))
{
// 領域注釈を作成する
AreaAnnotation area = new AreaAnnotation
{
Box = new Rectangle(100, 100, 200, 80),
BackgroundColor = 65535,
PageNumber = 0,
Message = "Important"
};
// 注釈を追加する
annotator.Add(area);
// 注釈付き DOCX を保存する
annotator.Save("annotated.docx");
}
すべての注釈タイプを Word ドキュメントに追加し、シンプルな API で管理できます。

DOCX ファイルのテキストをハイライト、下線、取り消し線、または置換します。
DOCX ページにシェイプを描画し、透かしや画像をスタンプとして貼り付けます。
DOCX のアノテーションを取得、削除、インポート、エクスポートします。
// アノテーション済み DOCX を開く
using (Annotator annotator = new Annotator("annotated.docx"))
{
// すべてのアノテーションを取得
List<AnnotationBase> annotations = annotator.Get();
// 各アノテーションを検査
foreach (AnnotationBase annotation in annotations)
{
System.Console.WriteLine(annotation.Message);
}
// ドキュメントを保存
annotator.Save("output.docx");
}
GroupDocs.Annotation を無料でダウンロードするか、フルアクセス用の試用版ライセンスを取得してください。
GroupDocs.Annotation for .NET は多数のファイル形式にわたるドキュメントへのアノテーションをサポートします: