Method AddHighlightAnnotation
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
AddHighlightAnnotation(string?, PdfRectangle, PdfColor?)
Adds the new highlight annotation to the PdfPage.
public PdfHighlightAnnotation AddHighlightAnnotation(string? contents, PdfRectangle bounds, PdfColor? color)
Parameters
contentsstringThe contents of the annotation.
boundsPdfRectangleThe PdfRectangle structure that specifies the location and the size of the highlighted area.
colorPdfColorColor of the highlighted area.
Returns
- PdfHighlightAnnotation
The newly created PdfHighlightAnnotation object.
Remarks
Read the Highlight text for an example of using highlight annotations.