PdfLoadedRectangleAnnotation Class
Represents the loaded Rectangle annotation class.
Inheritance
System.Object
PdfLoadedRectangleAnnotation
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfLoadedRectangleAnnotation : PdfLoadedStyledAnnotation, IPdfWrapper, INotifyPropertyChanged
Properties
BorderEffect
Get or set the border effect of the rectangle 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 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.
Declaration
public PdfLoadedPopupAnnotationCollection Comments { get; }
Property Value
Type | Description |
---|---|
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.
Declaration
public LineBorder LineBorder { get; set; }
Property Value
Type |
---|
LineBorder |
ReviewHistory
Gets the annotation review history.
Declaration
public PdfLoadedPopupAnnotationCollection ReviewHistory { get; }
Property Value
Type | Description |
---|---|
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.
Declaration
protected override void Save()
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged