Class PdfLoadedRectangleAnnotation
- Namespace
- Syncfusion.Pdf.Interactive
- Assembly
- Syncfusion.Pdf.Portable.dll
Represents the loaded Rectangle annotation class.
public class PdfLoadedRectangleAnnotation : PdfLoadedStyledAnnotation, INotifyPropertyChanged
- Inheritance
-
PdfLoadedRectangleAnnotation
- Implements
- Inherited Members
Properties
BorderEffect
Get or set the border effect of the rectangle annotation.
public PdfBorderEffect BorderEffect { get; set; }
Property Value
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Load the existing pdf rectangle annotation
PdfLoadedRectangleAnnotation rectangle = document.Pages[0].Annotations[0] as PdfLoadedRectangleAnnotation;
//Get and set the border effect of the annotation
PdfBoderEffect borderEffect = rectangle.BoderEffect;
//save the document
document.Save("PdfRectangleAnnotation.pdf");
//Close the docuemnt
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Load the existing pdf rectangle annotation
Dim rectangle As PdfLoadedRectangleAnnotation = document.Pages(0).Annotations(0)
'Get and set the border effect of the annotation
Dim borderEffect As PdfBoderEffect = rectangle.BorderEffect
'save the document
document.Save("PdfRectangleAnnotation.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 rectangle annotation.
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Load the existing PdfRectangleAnnotation
PdfLoadedRectangleAnnotation rectangle = document.Pages[0].Annotations[0] as PdfLoadedRectangleAnnotation;
//Get the Comments collection
PdfLoadedPopupAnnotationCollection CommentsCollection = rectangle.Comments;
//save the document
document.Save("PdfRectangleAnnotation.pdf");
//Close the docuemnt
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Load the existing PdfRectangleAnnotation
Dim rectangle As PdfLoadedRectangleAnnotation = document.Pages(0).Annotations(0)
'Get the Comments collection
Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = rectangle.Comments
'save the document
document.Save("PdfRectangleAnnotation.pdf")
'Close the document.
document.Close(True)
- See Also
LineBorder
Gets the line border of the annotation.
public LineBorder LineBorder { get; set; }
Property Value
ReviewHistory
Gets the annotation review history.
public PdfLoadedPopupAnnotationCollection ReviewHistory { get; }
Property Value
- PdfLoadedPopupAnnotationCollection
The review collection of the rectangle annotation.
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Load the existing PdfRectangleAnnotation
PdfLoadedRectangleAnnotation rectangle = document.Pages[0].Annotations[0] as PdfLoadedRectangleAnnotation;
//Get the review collection
PdfLoadedPopupAnnotationCollection reviewCollection = rectangle.ReviewHistory;
//save the document
document.Save("PdfRectangleAnnotation.pdf");
//Close the docuemnt
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Load the existing PdfRectangleAnnotation
Dim rectangle As PdfLoadedRectangleAnnotation = document.Pages(0).Annotations(0)
'Get the review collection
Dim reviewCollection As PdfLoadedPopupAnnotationCollection = rectangle.ReviewHistory
'save the document
document.Save("PdfRectangleAnnotation.pdf")
'Close the document.
document.Close(True)
- See Also
Methods
Save()
Saves an annotation.
protected override void Save()