GroupDocs.Annotation for Java は XLSX スプレッドシートへのアノテーションを簡単にします:
- Annotator インスタンスで XLSX を開きます。
- 必要なアノテーションを作成し、構成します。
- アノテーションをスプレッドシートに追加します。
- アノテーション済み XLSX を保存します。
GroupDocs.Annotation for Java は XLSX スプレッドシートへのアノテーションを簡単にします:
// XLSX スプレッドシートにアノテーション
// Annotator インスタンスで XLSX を開く
Annotator annotator = new Annotator("input.xlsx");
try {
// 領域アノテーションを作成
AreaAnnotation area = new AreaAnnotation();
area.setBox(new Rectangle(100, 100, 200, 80));
area.setBackgroundColor(65535);
area.setPageNumber(0);
area.setMessage("Important");
// アノテーションを追加
annotator.add(area);
// 注釈付きXLSXを保存する
annotator.save("annotated.xlsx");
} finally {
annotator.dispose();
}
すべての注釈タイプをExcelスプレッドシートに追加し、シンプルなAPIで管理できます。

XLSXファイル内のテキストをハイライト、下線、取り消し線、または置換します。
シェイプを描画し、透かしや画像をXLSXワークシートにスタンプします。
XLSX注釈の取得、削除、インポート、エクスポートを行います。
// 注釈付きXLSXを開く
Annotator annotator = new Annotator("annotated.xlsx");
try {
// すべての注釈を取得する
List<AnnotationBase> annotations = annotator.get();
// 各注釈を検査する
for (AnnotationBase annotation : annotations) {
System.out.println(annotation.getMessage());
}
// スプレッドシートを保存する
annotator.save("output.xlsx");
} finally {
annotator.dispose();
}
GroupDocs.Annotation を無料でダウンロードするか、フルアクセス用の試用版ライセンスを取得してください。
GroupDocs.Annotation for Java は多数のファイル形式に対する文書への注釈付けをサポートします: