C#: Online Guide
How To: Word SDK
Annotate Word
  |  
Home ›› XDoc.Word ›› C# Word: Annotate Word

C# Word - Annotate Word Page in C#.NET


Online Guide to Add Annotation to Word Page in C# Project




Overview



RasterEdge XDoc.Word Library provides some methods for developers to annotate on Word pages. In order to add various annotations, you need to add reference RasterEdge.Imaging.Annotation to your project.


Related .net document control helps:
asp.net file viewer: ASP.NET Document Viewer Control in C#: View, Annotate, Redact web document files in ASP.NET using C#
file redact asp.net: Redact document ASP.NET: add, delete, apply redaction on PDF files in web browser using C#.net
asp.net edit pdf page control: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net redact pdf control: ASP.NET Redact PDF Document Control: redact, remove PDF text, images in web browser using C# ASP.NET
asp.net pdf editor control: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net convert pdf control: ASP.NET Convert PDF Control: Convert, export PDF to Word, HTML, Tiff files in C# ASP.NET
asp.net sharepoint pdf editor control: ASP.NET SharePoint PDF Editor Control: view, edit, annotate, redact PDF document in SharePoint sites


Types of comment 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




C# DLLs: Word Annotation



Add references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Word;


  using RasterEdge.Imaging.Annotation;


  using RasterEdge.Imaging.Annotation.Basic;




Add Annotation to Word Page Using C#



This is a sample code for adding rubber stamp annotation to word page using C#.




DOCXDocument docx = new DOCXDocument(@"C:\1.docx");
BasePage page = docx.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);
docx.Save(@"C:\1anno.docx");