Class PdfLoadedPolygonAnnotation
Represents the Polygon annotation
Inheritance
System.Object
PdfLoadedPolygonAnnotation
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.NET.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
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
Methods
Save()
Saves an annotation.
Declaration
protected override void Save()
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged