Class PdfLoadedDocumentLinkAnnotation
Represents the loaded document link annotation class.
Inheritance
System.Object
PdfLoadedDocumentLinkAnnotation
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public class PdfLoadedDocumentLinkAnnotation : PdfLoadedStyledAnnotation, IPdfWrapper, INotifyPropertyChanged
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Gets the annotation from loaded document.
PdfLoadedDocumentLinkAnnotation documentLinkAnnotation = document.Pages[1].Annotations[4] as PdfLoadedDocumentLinkAnnotation;
//Gets the annotation flags
PdfAnnotationFlags flag = documentLinkAnnotation.AnnotationFlags;
//Sets the PDF destination.
documentLinkAnnotation.Destination = new PdfDestination(document.Pages[0], new PointF(10, 10));
//Gets the document link annotation border.
PdfAnnotationBorder border = documentLinkAnnotation.Border;
//Gets the document link annotation bounds.
RectangleF rectangle = documentLinkAnnotation.Bounds;
//Gets the document link annotation color.
PdfColor color = documentLinkAnnotation.Color;
//Gets the document link annotation location.
PointF point = documentLinkAnnotation.Location;
//Gets the document link annotation size.
SizeF size = documentLinkAnnotation.Size;
//Gets the document link annotation text.
string text = documentLinkAnnotation.Text;
//Save the document.
document.Save("documentLinkAnnotation.pdf");
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Gets the annotation from loaded document.
Dim documentLinkAnnotation As PdfLoadedDocumentLinkAnnotation = document.Pages(1).Annotations(4) as PdfLoadedDocumentLinkAnnotation
'Sets the destination.
documentLinkAnnotation.Destination = New PdfDestination(document.Pages[0], New PointF(10, 10));
'Gets the annotation flags
Dim flag As PdfAnnotationFlags = documentLinkAnnotation.AnnotationFlags
'Gets the document link annotation border.
Dim border As PdfAnnotationBorder = documentLinkAnnotation.Border
'Gets the document link annotation bounds.
Dim rectangle As RectangleF = documentLinkAnnotation.Bounds
'Gets the document link annotation color.
Dim color As PdfColor = documentLinkAnnotation.Color
'Gets the document link annotation location.
Dim point As PointF = documentLinkAnnotation.Location
'Gets the document link annotation size.
Dim size As SizeF = documentLinkAnnotation.Size
'Gets the document link annotation text.
Dim text As string = documentLinkAnnotation.Text
'Save the document.
document.Save("documentLinkAnnotation.pdf")
document.Close(True)
Properties
Destination
Sets the destination of the annotation.
Declaration
public PdfDestination Destination { get; set; }
Property Value
Type |
---|
PdfDestination |
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Gets the annotation from loaded document.
PdfLoadedDocumentLinkAnnotation documentLinkAnnotation = document.Pages[1].Annotations[4] as PdfLoadedDocumentLinkAnnotation;
//Gets the annotation flags
PdfAnnotationFlags flag = documentLinkAnnotation.AnnotationFlags;
//Sets the destination.
documentLinkAnnotation.Destination = new PdfDestination(document.Pages[0], new PointF(10, 10));
//Save the document.
document.Save("documentLinkAnnotation.pdf");
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Gets the annotation from loaded document.
Dim documentLinkAnnotation As PdfLoadedDocumentLinkAnnotation = document.Pages(1).Annotations(4) as PdfLoadedDocumentLinkAnnotation
'Sets the destination.
documentLinkAnnotation.Destination = New PdfDestination(document.Pages[0], New PointF(10, 10));
'Save the document.
document.Save("documentLinkAnnotation.pdf")
document.Close(True)
See Also
Methods
Save()
Declaration
protected override void Save()
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged