C# Excel Library
C# Excel - Annotate Excel File Page in C#.NET
Annotate Excel Document Page in C# Project
RasterEdge XDoc.Excel Library provides some methods for developers to annotate on Excel file pages. While, in order to add various annotations, you will add reference RasterEdge.Imaging.Annotation to your project.
Types of comments supported as follows:
- Rectangle
- Ellipse
- Line
- Freehand
- Freehand Lines
- Text
- Rectangular Hot Spot
- Freehand Hot Spot
- Embedded Image
- Referenced Image
- polygon
- Lines
- Rubber Stamp
- Callout
- Arrow
- Signature
Add Annotation to Excel File Page Using C#
Add rubber stamp annotation to Excel file page using C#.
XLSXDocument doc = new XLSXDocument(@"C:\1.xlsx");
BasePage page = doc.GetPage(0);
Font font = new Font("Arial", 15F);
AnnotationBrush brush = new AnnotationBrush();
AnnotationHandler annotation = AnnotationGenerator.CreateRubberStampAnnotation(10, 10, 100, 100, "Good", font, brush);
page.AddAnnotation(annotation);
doc.Save(@"C:\1anno.xlsx");