Table of Contents

Class Link

Namespace
iText.Layout.Element
Assembly
itext.layout.dll

A clickable piece of Text which contains a link annotation dictionary.

public class Link : Text, IAbstractElement, ILeafElement, IElement, IPropertyContainer, IAccessibleElement
Inheritance
Link
Implements
Inherited Members

A clickable piece of Text which contains a link annotation dictionary . The concept is largely similar to that of the HTML anchor tag.

Constructors

Creates a Link which can execute an action.

public Link(string text, PdfAction action)

Parameters

text string

the textual contents of the link

action PdfAction

a PdfAction

Creates a Link with a fully constructed link annotation dictionary.

public Link(string text, PdfLinkAnnotation linkAnnotation)

Parameters

text string

the textual contents of the link

linkAnnotation PdfLinkAnnotation

a PdfLinkAnnotation

Creates a Link to another location in the document.

public Link(string text, PdfDestination destination)

Parameters

text string

the textual contents of the link

destination PdfDestination

a PdfDestination

Methods

public override AccessibilityProperties GetAccessibilityProperties()

Returns

AccessibilityProperties

Gets the link annotation dictionary associated with this link.

public virtual PdfLinkAnnotation GetLinkAnnotation()

Returns

PdfLinkAnnotation

a PdfLinkAnnotation

protected override IRenderer MakeNewRenderer()

Returns

IRenderer