menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class PdfLoadedPolygonAnnotation

    Represents the Polygon annotation

    Inheritance
    System.Object
    PdfAnnotation
    PdfLoadedAnnotation
    PdfLoadedStyledAnnotation
    PdfLoadedPolygonAnnotation
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    PdfAnnotation.CalculateBounds(RectangleF, PdfPage, PdfLoadedPage)
    PdfAnnotation.CalculateTemplateBounds(RectangleF, PdfPageBase, PdfTemplate)
    PdfAnnotation.CalculateTemplateBounds(RectangleF, PdfPageBase, PdfTemplate, Boolean)
    PdfAnnotation.CalculateTemplateBounds(RectangleF, PdfPageBase, PdfTemplate, Boolean, PdfGraphics)
    PdfAnnotation.Flatten
    PdfAnnotation.FlattenPopUps
    PdfAnnotation.Initialize()
    PdfAnnotation.Layer
    PdfAnnotation.PdfTag
    PdfAnnotation.PropertyChanged
    PdfAnnotation.Rotate
    PdfAnnotation.SetAppearance(Boolean)
    PdfLoadedAnnotation.CreationDate
    PdfLoadedAnnotation.GetValues(String)
    PdfLoadedAnnotation.ObjectID
    PdfLoadedAnnotation.Page
    PdfLoadedAnnotation.SetText(String)
    PdfLoadedAnnotation.SetValues(String, String)
    PdfLoadedAnnotation.Type
    PdfLoadedStyledAnnotation.AnnotationFlags
    PdfLoadedStyledAnnotation.Author
    PdfLoadedStyledAnnotation.Bounds
    PdfLoadedStyledAnnotation.CheckFlatten()
    PdfLoadedStyledAnnotation.Color
    PdfLoadedStyledAnnotation.FlattenAnnotationTemplate(PdfTemplate, Boolean)
    PdfLoadedStyledAnnotation.InnerColor
    PdfLoadedStyledAnnotation.Location
    PdfLoadedStyledAnnotation.ModifiedDate
    PdfLoadedStyledAnnotation.Name
    PdfLoadedStyledAnnotation.Opacity
    PdfLoadedStyledAnnotation.Size
    PdfLoadedStyledAnnotation.Subject
    PdfLoadedStyledAnnotation.Text
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public class PdfLoadedPolygonAnnotation : PdfLoadedStyledAnnotation, IPdfWrapper, INotifyPropertyChanged

    Properties

    Border

    Gets the line border of the annotation.

    Declaration
    public LineBorder Border { get; set; }
    Property Value
    Type
    LineBorder

    BorderEffect

    Get or set the border effect of the polygon annotation.

    Declaration
    public PdfBorderEffect BorderEffect { get; set; }
    Property Value
    Type
    PdfBorderEffect
    Examples
    //Load an existing document.
    PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing pdf polygon annotation
    PdfLoadedPolygonAnnotation  polygon = document.Pages[0].Annotations[0] as PdfLoadedPolygonAnnotation;
    //Get and set the border effect of the annotation
    PdfBoderEffect borderEffect = polygon.BoderEffect;
    //save the document
    document.Save("PdfPolygonAnnotation.pdf");
    //Close the docuemnt
    document.Close(true);
    'Load an existing document.
    Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
    'Load the existing PdfPolygonAnnotation
    Dim polygon As PdfLoadedPolygonAnnotation = document.Pages(0).Annotations(0)
    'Get and set the border effect of the annotation
    Dim borderEffect As PdfBoderEffect = polygon.BorderEffect
    'save the document
    document.Save("PdfPolygonAnnotation.pdf")
    'Close the document.
    document.Close(True)

    Comments

    Gets the annotation comments history.

    Declaration
    public PdfLoadedPopupAnnotationCollection Comments { get; }
    Property Value
    Type Description
    PdfLoadedPopupAnnotationCollection

    The comments collection of the polygon annotation.

    Examples
    //Load an existing document.
    PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfPolygonAnnotation
    PdfLoadedPolygonAnnotation  polygon = document.Pages[0].Annotations[0] as PdfLoadedPolygonAnnotation;
    //Get the Comments collection
    PdfLoadedPopupAnnotationCollection reviewCollection = polygon.Comments;
    //save the document
    document.Save("PdfPolygonAnnotation.pdf");
    //Close the docuemnt
    document.Close(true);
    'Load an existing document.
    Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
    'Load the existing PdfPolygonAnnotation
    Dim polygon As PdfLoadedPolygonAnnotation = document.Pages(0).Annotations(0)
    'Get the Comments collection
    Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = polygon.Comments
    'save the document
    document.Save("PdfPolygonAnnotation.pdf")
    'Close the document.
    document.Close(True)
    See Also
    PdfLoadedDocument
    PdfLoadedPage

    PolygonPoints

    Gets the polygon points of the annotation.

    Declaration
    public int[] PolygonPoints { get; }
    Property Value
    Type
    System.Int32[]

    ReviewHistory

    Gets the annotation review history.

    Declaration
    public PdfLoadedPopupAnnotationCollection ReviewHistory { get; }
    Property Value
    Type Description
    PdfLoadedPopupAnnotationCollection

    The review collection of the polygon annotation.

    Examples
    //Load an existing document.
    PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfPolygonAnnotation
    PdfLoadedPolygonAnnotation  polygon = document.Pages[0].Annotations[0] as PdfLoadedPolygonAnnotation;
    //Get the review collection
    PdfLoadedPopupAnnotationCollection reviewCollection = polygon.ReviewHistory;
    //save the document
    document.Save("PdfPolygonAnnotation.pdf");
    //Close the docuemnt
    document.Close(true);
    'Load an existing document.
    Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
    'Load the existing PdfPolygonAnnotation
    Dim polygon As PdfLoadedPolygonAnnotation = document.Pages(0).Annotations(0)
    'Get the review collection
    Dim reviewCollection As PdfLoadedPopupAnnotationCollection = polygon.ReviewHistory
    'save the document
    document.Save("PdfPolygonAnnotation.pdf")
    'Close the document.
    document.Close(True)
    See Also
    PdfLoadedDocument
    PdfLoadedPage

    Methods

    Save()

    Saves an annotation.

    Declaration
    protected override void Save()
    Overrides
    PdfAnnotation.Save()

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved