GroupDocs.Annotation for .NET를 사용하면 Excel 스프레드시트에 주석 달기가 쉬워집니다:
- Annotator 인스턴스로 Excel 파일을 엽니다.
- 필요한 주석을 생성하고 구성합니다.
- 주석을 스프레드시트에 추가합니다.
- 주석이 달린 Excel 파일을 저장합니다.
GroupDocs.Annotation for .NET를 사용하면 Excel 스프레드시트에 주석 달기가 쉬워집니다:
// Excel 스프레드시트에 주석 달기
// Annotator 인스턴스로 스프레드시트를 엽니다
using (Annotator annotator = new Annotator("input.xlsx"))
{
// 영역 주석 생성
AreaAnnotation area = new AreaAnnotation
{
Box = new Rectangle(100, 100, 200, 80),
BackgroundColor = 65535,
PageNumber = 0,
Message = "Important"
};
// 주석 추가
annotator.Add(area);
// 주석이 달린 스프레드시트 저장
annotator.Save("annotated.xlsx");
}
Excel 스프레드시트에 모든 주석 유형을 추가하고 간단한 API로 관리합니다.

Excel 파일에서 텍스트를 강조, 밑줄, 취소선 표시하거나 교체합니다.
Excel 워크시트에 도형을 그리거나 워터마크·이미지를 삽입합니다.
Excel 주석을 가져오고, 제거하며, 가져오기 및 내보내기합니다.
// 주석이 달린 스프레드시트를 엽니다
using (Annotator annotator = new Annotator("annotated.xlsx"))
{
// 모든 주석을 가져옵니다
List<AnnotationBase> annotations = annotator.Get();
// 각 주석을 검사합니다
foreach (AnnotationBase annotation in annotations)
{
System.Console.WriteLine(annotation.Message);
}
// 스프레드시트를 저장합니다
annotator.Save("output.xlsx");
}
GroupDocs.Annotation for .NET은(는) 다양한 파일 형식의 문서에 주석을 달는 것을 지원합니다: