WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfPopupIcon

    Show / Hide Table of Contents

    Enum PdfPopupIcon

    Specifies the enumeration of popup annotation icons.

    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfPopupIcon
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page.
    PdfPage page = document.Pages.Add();
    //Create a new rectangle
    RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30);
    //Create a new popup annotation.
    PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation");
    //Set the popup icon.
    popupAnnotation.Icon = PdfPopupIcon.NewParagraph;
    //Add this annotation to a new page.
    page.Annotations.Add(popupAnnotation);
    //Save the  document to disk.
    document.Save("Output.pdf");
    //close the document
    document.Close(true);
    'Create a new PDF document.
    Dim document As New PdfDocument()
    'Create a new page.
    Dim page As PdfPage = document.Pages.Add()
    'Create a new rectangle
    Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30)
    'Create a new popup annotation.
    Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation")
    'Set the popup icon.
    popupAnnotation.Icon = PdfPopupIcon.NewParagraph
    'Add this annotation to a new page.
    page.Annotations.Add(popupAnnotation)
    'Save the  document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)

    Fields

    Name Description
    Comment

    Indicates comment popup annotation.

    Help

    Indicates help popup annotation.

    Insert

    Indicates insert popup annotation.

    Key

    Indicates key popup annotation.

    NewParagraph

    Indicates new paragraph popup annotation.

    Note

    Indicates note popup annotation.

    Paragraph

    Indicates paragraph popup annotation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved