menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfAttachmentIcon - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfAttachmentIcon

    Specifies the type of icon to be used in displaying file attachment annotations.

    Inheritance
    System.Object
    PdfAttachmentIcon
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class PdfAttachmentIcon : Enum
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page.
    PdfPage page = document.Pages.Add();
    //Create a new rectangle
    RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30);
    //Create a new attachment annotation.
    PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"Input.jpg");
    //Set the Attachment icon to attachment annotation.
    attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin;
    //Add this annotation to a new page.
    page.Annotations.Add(attachmentAnnotation);
    //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 attachmentRectangle As New RectangleF(10, 40, 30, 30)
    'Create a new attachment annotation.
    Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentRectangle, "Input.jpg")
    'Set the Attachment icon to attachment annotation.
    attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin
    'Add this annotation to a new page.
    page.Annotations.Add(attachmentAnnotation)
    'Save the  document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)

    Fields

    Graph

    Type of icon used in file attachment annotation.

    Declaration
    public const PdfAttachmentIcon Graph
    Field Value
    Type
    PdfAttachmentIcon

    Paperclip

    Type of icon used in file attachment annotation.

    Declaration
    public const PdfAttachmentIcon Paperclip
    Field Value
    Type
    PdfAttachmentIcon

    PushPin

    Type of icon used in file attachment annotation.

    Declaration
    public const PdfAttachmentIcon PushPin
    Field Value
    Type
    PdfAttachmentIcon

    Tag

    Type of icon used in file attachment annotation.

    Declaration
    public const PdfAttachmentIcon Tag
    Field Value
    Type
    PdfAttachmentIcon

    See Also

    PdfDocument
    PdfPage
    PdfAttachmentAnnotation
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved