PdfDocumentProcessor.AddTextMarkupAnnotation(Int32, PdfOrientedRectangle, PdfTextMarkupAnnotationType) Method
Adds a text markup annotation to the specified area on the page.
Namespace: DevExpress.Pdf
Assembly: DevExpress.Docs.v18.2.dll
Declaration
public PdfTextMarkupAnnotationData AddTextMarkupAnnotation(
int pageNumber,
PdfOrientedRectangle textRectangle,
PdfTextMarkupAnnotationType style
)
Parameters
Name | Type | Description |
---|---|---|
pageNumber | Int32 | An integer value that specifies the number of the page where the annotation should be added. |
textRectangle | PdfOrientedRectangle | A PdfOrientedRectangle object that represents a rectangle specifying a page area where the annotation will be added. |
style | PdfTextMarkupAnnotationType | A PdfTextMarkupAnnotationType enumeration value that specifies the markup annotation type to be added to a page. |
Returns
Type | Description |
---|---|
PdfTextMarkupAnnotationData | A PdfTextMarkupAnnotationData object that represents the created text markup annotation on a page. |
Remarks
After creating a text markup annotation, you can specify the markup annotation properties using a PdfTextMarkupAnnotationData object.
if a specified page area does not correspond to a text on the page, the AddTextMarkupAnnotation method returns null.