GroupDocs.Annotation for Java で Excel スプレッドシートに簡単に注釈を付けられます:
- Annotator インスタンスで Excel ファイルを開きます。
- 必要な注釈を作成し、構成します。
- 注釈をスプレッドシートに追加します。
- 注釈付き Excel ファイルを保存します。
GroupDocs.Annotation for Java で Excel スプレッドシートに簡単に注釈を付けられます:
// Excel スプレッドシートに注釈を付ける
// Annotator インスタンスでスプレッドシートを開く
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);
// 注釈付きスプレッドシートを保存する
annotator.save("annotated.xlsx");
} finally {
annotator.dispose();
}
すべての注釈タイプを Excel スプレッドシートに追加し、シンプルな API で管理できます。

Excel ファイルのテキストをハイライト、下線、取り消し線、または置換します。
図形を描画し、Excel ワークシートに透かしや画像をスタンプします。
Excel 注釈を取得、削除、インポート、エクスポートします。
// 注釈付きスプレッドシートを開く
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 は多数のファイル形式のドキュメントに注釈を付けることをサポートします: