Enum PdfTextMarkupAnnotationType
Specifies the Style of the Text Markup Annotation
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum PdfTextMarkupAnnotationType
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)
Fields
Name | Description |
---|---|
Highlight | The Text Markup Annotation Type is Highlight. |
Squiggly | The Text Markup Annotation Type is Squiggly. |
StrikeOut | The Text Markup Annotation Type is StrikeOut. |
Underline | The Text Markup Annotation Type is Underline. |