# Add area annotation The page describes how to add area annotation to a document using GroupDocs.Annotation for .NET. Area annotation allows you to mark up a rectangle area within the document page and annotate it as shown in the picture below.  ![](https://docs.groupdocs.com/annotation/net/images/add-area-annotation.png) You can set the following properties of the [AreaAnnotation](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.models.annotationmodels/areaannotation) class: * [BackgroundColor](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/areaannotation/properties/backgroundcolor) defines the area background color * [Box](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/areaannotation/properties/box) defines the annotation position at the document page * [Opacity](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/areaannotation/properties/opacity) - allows you to set the annotation opacity * [PenColor](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/areaannotation/properties/pencolor) defines the frame color * [PenStyle](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/areaannotation/properties/penstyle) defines the frame line style (solid, dash, dot etc.) * [PenWidth](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/areaannotation/properties/penwidth) - defines the frame line width in pixels To add an area annotation to document, follow these steps:   1. Instantiate the [Annotator](https://reference.groupdocs.com/net/annotation/groupdocs.annotation/annotator) class. Specify the input document path or stream. 2. Instantiate the [AreaAnnotation](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.models.annotationmodels/areaannotation) class. Specify the appropriate properties (position, page number, etc). 3. Call the [Add](https://reference.groupdocs.com/net/annotation/groupdocs.annotation/annotator/methods/add) method. Specify the [AreaAnnotation](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.models.annotationmodels/areaannotation) class. 4. Call the [Save](https://reference.groupdocs.com/net/annotation/groupdocs.annotation/annotator/methods/save/index) method. Specify the output document path or stream. The following code snippet shows how to add [AreaAnnotation](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.models.annotationmodels/areaannotation) to the document: {{< tabs "example1">}} {{< tab "C#" >}} ```csharp using (Annotator annotator = new Annotator("input.pdf")) { AreaAnnotation area = new AreaAnnotation { BackgroundColor = 65535, Box = new Rectangle(100, 100, 100, 100), CreatedOn = DateTime.Now, Message = "This is area annotation", Opacity = 0.7, PageNumber = 0, PenColor = 65535, PenStyle = PenStyle.Dot, PenWidth = 3, Replies = new List { new Reply { Comment = "First comment", RepliedOn = DateTime.Now }, new Reply { Comment = "Second comment", RepliedOn = DateTime.Now } } }; annotator.Add(area); annotator.Save("result.pdf"); } ``` {{< /tab >}} {{< /tabs >}}