Table of Contents

Enum PdfTextMarkupAnnotationType

Namespace
Syncfusion.Pdf.Interactive
Assembly
Syncfusion.Pdf.Portable.dll

Specifies the Style of the Text Markup Annotation

public enum PdfTextMarkupAnnotationType

Fields

Highlight = 0

The Text Markup Annotation Type is Highlight.

Squiggly = 2

The Text Markup Annotation Type is Squiggly.

StrikeOut = 3

The Text Markup Annotation Type is StrikeOut.

Underline = 1

The Text Markup Annotation Type is Underline.

Examples

//Load an existing document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Gets the annotation from loaded document.
PdfLoadedTextMarkupAnnotation textMarkupAnnotation = loadedDocument.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation;
//Sets the pdf text markup annotation type
textMarkupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight;
//Save the document.
loadedDocument.Save("Output.pdf");
//close the document
loadedDocument.Close(true);
'Load an existing document.
Dim loadedDocument As New PdfLoadedDocument("input.pdf")
'Gets the annotation from loaded document.
Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = TryCast(loadedDocument.Pages(1).Annotations(5), PdfLoadedTextMarkupAnnotation)
'Sets the pdf text markup annotation type
textMarkupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight
'Save the document.
loadedDocument.Save("Output.pdf")
'close the document
loadedDocument.Close(True)