Table of Contents

Class Anchor

Namespace
iTextSharp.text
Assembly
iTextSharp.LGPLv2.Core.dll

An Anchor can be a reference or a destination of a reference.

public class Anchor : Phrase, IList<IElement>, ICollection<IElement>, IList, ICollection, IReadOnlyList<IElement>, IReadOnlyCollection<IElement>, IEnumerable<IElement>, IEnumerable, ITextElementArray, IElement
Inheritance
Anchor
Implements
Inherited Members
Extension Methods

Remarks

An Anchor is a special kind of Phrase It is constructed in the same way.

Constructors

Anchor()

constructors

public Anchor()

Anchor(float)

Constructs an Anchor with a certain leading.

public Anchor(float leading)

Parameters

leading float

the leading

Anchor(float, string)

Constructs an Anchor with a certain leading and a certain string.

public Anchor(float leading, string str)

Parameters

leading float

the leading

str string

a string

Anchor(float, string, Font)

Constructs an Anchor with a certain leading, a certain string and a certain Font.

public Anchor(float leading, string str, Font font)

Parameters

leading float

the leading

str string

a string

font Font

a Font

Anchor(float, Chunk)

Constructs an Anchor with a certain Chunk and a certain leading.

public Anchor(float leading, Chunk chunk)

Parameters

leading float

the leading

chunk Chunk

a Chunk

Anchor(string)

Constructs an Anchor with a certain string.

public Anchor(string str)

Parameters

str string

a string

Anchor(string, Font)

Constructs an Anchor with a certain string and a certain Font.

public Anchor(string str, Font font)

Parameters

str string

a string

font Font

a Font

Anchor(Chunk)

Constructs an Anchor with a certain Chunk.

public Anchor(Chunk chunk)

Parameters

chunk Chunk

a Chunk

Anchor(Phrase)

Constructs an Anchor with a certain Phrase .

public Anchor(Phrase phrase)

Parameters

phrase Phrase

a Phrase

Fields

name

This is the name of the Anchor.

protected string name

Field Value

string

reference

This is the reference of the Anchor.

protected string reference

Field Value

string

Properties

Chunks

implementation of the Element-methods

public override IList<Chunk> Chunks { get; }

Property Value

IList<Chunk>

an ArrayList

Name

Name of this Anchor.

public string Name { get; set; }

Property Value

string

Reference

reference of this Anchor.

public string Reference { get; set; }

Property Value

string

Type

Gets the type of the text element.

public override int Type { get; }

Property Value

int

a type

Url

methods

public Uri Url { get; }

Property Value

Uri

an Uri

Methods

Process(IElementListener)

Processes the element by adding it (or the different parts) to an

public override bool Process(IElementListener listener)

Parameters

listener IElementListener

an IElementListener

Returns

bool

true if the element was processed successfully