# Add search text annotation The page describes how to add search text annotation to a document using GroupDocs.Annotation for .NET." Search text annotation searches for specific text and highlight it as shown in the picture below: ![](https://docs.groupdocs.com/annotation/net/images/add-text-search-annotation.png) You can specify the following properties of the [SearchTextAnnotation](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.models.annotationmodels/searchtextannotation) class: * [BackgroundColor](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/searchtextannotation/properties/backgroundcolor) defines the area background color * [Text](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/searchtextannotation/properties/text) defines the text to be found. If the document does not contain the specific text, nothing will be highlighted * [FontColor](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/searchtextannotation/properties/fontcolor) defines the color of the text * [FontFamily](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/searchtextannotation/properties/fontfamily) defines the name of text font * [FontSize](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.models.annotationmodels/searchtextannotation/properties/fontsize) defines the text font size To add a search text annotation, 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 [SearchText](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.models.annotationmodels/searchtextannotation) 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 [SearchTextAnnotation](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.models.annotationmodels/searchtextannotation) 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 demonstrates how to add [SearchTextAnnotation](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.models.annotationmodels/searchtextannotation) to the document: {{< tabs "example1">}} {{< tab "C#" >}} ```csharp //Add search text annotation to the document from local disk using (Annotator annotator = new Annotator("input.pdf")) { SearchTextFragment searchText = new SearchTextFragment() { Text = "Welcome to GroupDocs", //If the document does not contain this text, nothing will be highlighted FontSize = 10, FontFamily = "Calibri", FontColor = 65535, BackgroundColor = 16761035, }; annotator.Add(searchText); annotator.Save("result.pdf"); }  ``` {{< /tab >}} {{< /tabs >}}