Class PdfLoadedSquareAnnotation
Inheritance
System.Object
PdfLoadedSquareAnnotation
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfLoadedSquareAnnotation : PdfLoadedStyledAnnotation, IPdfWrapper, INotifyPropertyChanged
Properties
Border
Get or set the border of the square annotation.
Declaration
public LineBorder Border { get; set; }
Property Value
Type | Description |
---|---|
LineBorder |
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Load the existing pdf square annotation
PdfLoadedSquareAnnotation square = document.Pages[0].Annotations[0] as PdfLoadedSquareAnnotation;
//Set the border of the annotation
LineBorder border = new LineBorder();
border.BorderStyle = PdfBorderStyle.Beveled;
//save the document
document.Save("PdfSquareAnnotation.pdf");
//Close the docuemnt
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Load the existing pdf square annotation
Dim square As PdfLoadedSquareAnnotation = document.Pages(0).Annotations(0)
'Set the border of the annotation
Dim border As New LineBorder()
border.BorderStyle = PdfBorderStyle.Beveled;
'save the document
document.Save("PdfSquareAnnotation.pdf")
'Close the document.
document.Close(True)
BorderEffect
Get or set the border effect of the square annotation.
Declaration
public PdfBorderEffect BorderEffect { get; set; }
Property Value
Type | Description |
---|---|
PdfBorderEffect |
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Load the existing pdf square annotation
PdfLoadedSquareAnnotation square = document.Pages[0].Annotations[0] as PdfLoadedSquareAnnotation;
//Get and Set the border effect of the annotation
PdfBoderEffect borderEffect = square.BoderEffect;
//save the document
document.Save("PdfSquareAnnotation.pdf");
//Close the docuemnt
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Load the existing pdf square annotation
Dim square As PdfLoadedSquareAnnotation = document.Pages(0).Annotations(0)
'Get and Set the border effect of the annotation
Dim borderEffect As PdfBoderEffect = square.document
'save the document
document.Save("PdfSquareAnnotation.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 square annotation. |
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Load the existing PdfSquareAnnotation
PdfLoadedSquareAnnotation square = document.Pages[0].Annotations[0] as PdfLoadedSquareAnnotation;
//Get the Comments collection
PdfLoadedPopupAnnotationCollection CommentsCollection = square.Comments;
//save the document
document.Save("PdfSquareAnnotation.pdf");
//Close the docuemnt
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Load the existing PdfSquareAnnotation
Dim square As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0)
'Get the Comments collection
Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = square.Comments
'save the document
document.Save("PdfSquareAnnotation.pdf")
'Close the document.
document.Close(True)
See Also
ReviewHistory
Gets the annotation review history.
Declaration
public PdfLoadedPopupAnnotationCollection ReviewHistory { get; }
Property Value
Type | Description |
---|---|
PdfLoadedPopupAnnotationCollection | The review collection of square annotation. |
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Load the existing PdfSquareAnnotation
PdfLoadedSquareAnnotation square = document.Pages[0].Annotations[0] as PdfLoadedSquareAnnotation;
//Get the review collection
PdfLoadedPopupAnnotationCollection reviewCollection = square.ReviewHistory;
//save the document
document.Save("PdfSquareAnnotation.pdf");
//Close the docuemnt
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Load the existing PdfSquareAnnotation
Dim square As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0)
'Get the review collection
Dim reviewCollection As PdfLoadedPopupAnnotationCollection = square.ReviewHistory
'save the document
document.Save("PdfSquareAnnotation.pdf")
'Close the document.
document.Close(True)
See Also
Methods
Save()
Saves an annotation.
Declaration
protected override void Save()
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged