Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfAnnotationFlags

    Show / Hide Table of Contents

    Class PdfAnnotationFlags

    Specifies the enumeration of the annotation flags.

    Inheritance
    System.Object
    PdfAnnotationFlags
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class PdfAnnotationFlags : 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 docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30);
    //Create a new document link annotation.
    PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle);
    //Set the annotation flags to document annotation.
    documentAnnotation.AnnotationFlags = PdfAnnotationFlags.NoRotate;
    //Add this annotation to a new page.
    page.Annotations.Add(documentAnnotation);
    //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 docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30)
    'Create a new document link annotation.
    Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle)
    'Set the annotation flags to document annotation.
    documentAnnotation.AnnotationFlags = PdfAnnotationFlags.NoRotate
    'Add this annotation to a new page.
    page.Annotations.Add(documentAnnotation)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)

    Fields

    Default

    Default value.

    Declaration
    public const PdfAnnotationFlags Default
    Field Value
    Type Description
    PdfAnnotationFlags

    Hidden

    Represents hidden annotation flag's key.

    Declaration
    public const PdfAnnotationFlags Hidden
    Field Value
    Type Description
    PdfAnnotationFlags

    Invisible

    Represents invisible annotation flag's key.

    Declaration
    public const PdfAnnotationFlags Invisible
    Field Value
    Type Description
    PdfAnnotationFlags

    Locked

    Represents locked annotation flag's key.

    Declaration
    public const PdfAnnotationFlags Locked
    Field Value
    Type Description
    PdfAnnotationFlags

    NoRotate

    Represents annotation flag's key with no rotation.

    Declaration
    public const PdfAnnotationFlags NoRotate
    Field Value
    Type Description
    PdfAnnotationFlags

    NoView

    Represents annotation flag's key with no view.

    Declaration
    public const PdfAnnotationFlags NoView
    Field Value
    Type Description
    PdfAnnotationFlags

    NoZoom

    Represents annotation flag's key with no zooming.

    Declaration
    public const PdfAnnotationFlags NoZoom
    Field Value
    Type Description
    PdfAnnotationFlags

    Print

    Represents print annotation flag's key.

    Declaration
    public const PdfAnnotationFlags Print
    Field Value
    Type Description
    PdfAnnotationFlags

    ReadOnly

    Represents read only annotation flag's key.

    Declaration
    public const PdfAnnotationFlags ReadOnly
    Field Value
    Type Description
    PdfAnnotationFlags

    ToggleNoView

    Annotation flag's key with no toggle view.

    Declaration
    public const PdfAnnotationFlags ToggleNoView
    Field Value
    Type Description
    PdfAnnotationFlags

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved