PdfLinkAnnotation Class
A link annotation represents either a hypertext link to a destination elsewhere in the document (see 12.3.2, "Destinations") or an action to be performed (12.6, "Actions").
public sealed class PdfLinkAnnotation : PdfAnnotation
Public NotInheritable Class PdfLinkAnnotation
Inherits PdfAnnotation
- Inheritance:
- System.ObjectPdfLinkAnnotation
Properties
Actions
(Optional; PDF 1.1) An action that shall be performed when the link annotation is activated (see 12.6, "Actions").
public PdfActionCollection Actions { get; }
Public ReadOnly Property Actions As PdfActionCollection
Property Value
An action that shall be performed when the link annotation is activated.
See Also
AnnotationType
Gets the Link value.
public override PdfAnnotationType AnnotationType { get; }
Public Overrides ReadOnly Property AnnotationType As PdfAnnotationType
Property Value
The Link value.
Overrides
Appearance
Gets the appearance settings for this PdfLinkAnnotation.
public PdfLinkAppearance Appearance { get; }
Public ReadOnly Property Appearance As PdfLinkAppearance
Property Value
The appearance settings for this PdfLinkAnnotation.
Destination
(Optional; not permitted if an A entry is present) The destination that shall be displayed when the annotation is activated (see 12.3.2, "Destinations").
public PdfDestination Destination { get; set; }
Public Property Destination As PdfDestination
Property Value
The destination that shall be displayed when the annotation is activated.
See Also
DestinationName
(Optional; not permitted if an A entry is present) The named destination that shall be displayed when the annotation is activated (see 12.3.2.3, "Named Destinations").
Property Value
- System.String
The named destination that shall be displayed when the annotation is activated.
See Also
HighlightMode
(Optional; PDF 1.2) The annotation's highlighting mode, the visual effect that shall be used when the mouse button is pressed or held down inside its active area.
Default value: Invert.
public PdfHighlightMode HighlightMode { get; set; }
Public Property HighlightMode As PdfHighlightMode
Property Value
The annotation's highlighting mode, the visual effect that shall be used when the mouse button is pressed or held down inside its active area.
Exceptions
- System.NotSupportedException
Value Unknown of enumeration PdfHighlightMode is not supported in the requested operation.
See Also
Quads
(Optional; PDF 1.6) An array of 8 × n numbers specifying the coordinates of n quadrilaterals in default user space that comprise the region in which the link should be activated.
If this entry is not present or the conforming reader does not recognize it, the region specified by the Bounds entry should be used. Quads shall be ignored if any coordinate in the array lies outside the region specified by Bounds.
public PdfCollection<PdfQuad> Quads { get; }
Public ReadOnly Property Quads As PdfCollection(Of PdfQuad)
Property Value
An array of 8 × n numbers specifying the coordinates of n quadrilaterals in default user space that comprise the region in which the link should be activated.
See Also
Methods
SetDestination(PdfPage, PdfDestinationViewType, Nullable<Double>[])
Sets the explicit destination that shall be displayed when the annotation is activated (see 12.3.2.2, "Explicit Destinations").
parameters
represent the following values depending on the viewType
parameter:
public PdfDestination SetDestination(PdfPage page, PdfDestinationViewType viewType, params double? [] parameters)
Public Function SetDestination(page As PdfPage, viewType As PdfDestinationViewType, ParamArray parameters As Double?()) As PdfDestination
Parameters
page
- PdfPage
The page that shall be displayed when the annotation is activated.
viewType
- PdfDestinationViewType
Type of the view.
parameters
- System.Nullable<System.Double>[]
The parameters of the view.
Returns
The explicit destination that shall be displayed when the annotation is activated.
See Also
Inherited Properties
AssociatedFiles | (Optional; PDF 2.0) An array of one or more PdfFileSpecifications which denote the associated files for this PdfAnnotation. (Inherited from PdfAnnotation) |
Bounds | (Required) The annotation bounds, defining the location and the size of the annotation on the page in default user space units. (Inherited from PdfAnnotation) |
Locked | (PDF 1.4) If set, do not allow the annotation to be deleted or its properties (including position and size) to be modified by the user. However, this flag does not restrict changes to the annotation's contents, such as the value of a form field. (Inherited from PdfAnnotation) |
Metadata | (Optional; PDF 1.4) A metadata stream containing metadata for the component. (Inherited from PdfObject) |
Page | Gets the page with which this annotation is associated. (Inherited from PdfAnnotation) |
Inherited Methods
SetBounds(System.Double, System.Double) | Sets the size of the Bounds. (Inherited from PdfAnnotation) |
SetBounds(System.Double, System.Double, System.Double, System.Double) | Sets the Bounds. (Inherited from PdfAnnotation) |