Table of Contents

Class PdfLoadedPolygonAnnotation

Namespace
Syncfusion.Pdf.Interactive
Assembly
Syncfusion.Pdf.Portable.dll

Represents the Polygon annotation

public class PdfLoadedPolygonAnnotation : PdfLoadedStyledAnnotation, INotifyPropertyChanged
Inheritance
PdfLoadedPolygonAnnotation
Implements
Inherited Members

Properties

Border

Gets the line border of the annotation.

public LineBorder Border { get; set; }

Property Value

LineBorder

BorderEffect

Get or set the border effect of the polygon annotation.

public PdfBorderEffect BorderEffect { get; set; }

Property Value

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.

public PdfLoadedPopupAnnotationCollection Comments { get; }

Property Value

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

PolygonPoints

Gets the polygon points of the annotation.

public int[] PolygonPoints { get; }

Property Value

int[]

ReviewHistory

Gets the annotation review history.

public PdfLoadedPopupAnnotationCollection ReviewHistory { get; }

Property Value

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

Methods

Save()

Saves an annotation.

protected override void Save()