Method AddTextAnnotation
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
AddTextAnnotation(PdfPoint, string?)
Adds the new text annotation to the PdfPage.
public PdfTextAnnotation AddTextAnnotation(PdfPoint position, string? title)
Parameters
positionPdfPointThe position of the upper-left corner of the text annotation.
titlestringThe title for the annotation.
Returns
- PdfTextAnnotation
The newly created PdfTextAnnotation object.
AddTextAnnotation(PdfPoint, string?, string?)
Adds the new text annotation to the PdfPage.
public PdfTextAnnotation AddTextAnnotation(PdfPoint position, string? title, string? contents)
Parameters
positionPdfPointThe position of the upper-left corner of the text annotation.
titlestringThe title for the annotation.
contentsstringThe contents of the annotation.
Returns
- PdfTextAnnotation
The newly created PdfTextAnnotation object.
AddTextAnnotation(double, double, string?, string?)
Adds the new text annotation to the PdfPage.
public PdfTextAnnotation AddTextAnnotation(double x, double y, string? title, string? contents)
Parameters
xdoubleThe x-coordinate of the upper-left corner of the text annotation.
ydoubleThe y-coordinate of the upper-left corner of the text annotation.
titlestringThe title for the annotation.
contentsstringThe contents of the annotation.
Returns
- PdfTextAnnotation
The newly created PdfTextAnnotation object.