menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfTextMarkupAnnotationType - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfTextMarkupAnnotationType

    Specifies the Style of the Text Markup Annotation

    Inheritance
    System.Object
    PdfTextMarkupAnnotationType
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.UWP.dll
    Syntax
    public sealed class PdfTextMarkupAnnotationType : Enum
    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

    Highlight

    The Text Markup Annotation Type is Highlight.

    Declaration
    public const PdfTextMarkupAnnotationType Highlight
    Field Value
    Type
    PdfTextMarkupAnnotationType

    Squiggly

    The Text Markup Annotation Type is Squiggly.

    Declaration
    public const PdfTextMarkupAnnotationType Squiggly
    Field Value
    Type
    PdfTextMarkupAnnotationType

    StrikeOut

    The Text Markup Annotation Type is StrikeOut.

    Declaration
    public const PdfTextMarkupAnnotationType StrikeOut
    Field Value
    Type
    PdfTextMarkupAnnotationType

    Underline

    The Text Markup Annotation Type is Underline.

    Declaration
    public const PdfTextMarkupAnnotationType Underline
    Field Value
    Type
    PdfTextMarkupAnnotationType

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved