iText 5

Anchor

Anchor Public class

Description

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

Diagram

flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.text iTextSharp.text.Anchor[[Anchor]] iTextSharp.text.Phrase[[Phrase]] end iTextSharp.text.Phrase --> iTextSharp.text.Anchor

Members

Properties

Public properties

Type

Name

Methods

IList<

Chunk

>

Chunks


Gets all the chunks in this element.

get

string

Name


Name of this Anchor.

get, set

string

Reference


reference of this Anchor.

get, set

int

Type


Gets the type of the text element.

get

Uri

Url


reference of this Anchor.

get

Methods

Public methods

Returns

Name

bool

Process

(

IElementListener

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

IElementListener

Protected methods

Returns

Name

bool

ApplyAnchor

(

Chunk

chunk, bool notGotoOK, bool localDestination)

Details

Summary

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

Remarks

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

Inheritance

Constructors

Anchor [1/9]

Source code

public Anchor()

Summary

Constructs an Anchor without specifying a leading.

Anchor [2/9]

Source code

public Anchor(float leading)

Arguments

Type

Name

Description

float

leading

the leading

Summary

Constructs an Anchor with a certain leading.

Anchor [3/9]

Source code

public Anchor(Chunk chunk)

Arguments

Type

Name

Description

Chunk

chunk

a Chunk

Summary

Constructs an Anchor with a certain Chunk.

Anchor [4/9]

Source code

public Anchor(string str)

Arguments

Type

Name

Description

string

str

a string

Summary

Constructs an Anchor with a certain string.

Anchor [5/9]

Source code

public Anchor(string str, Font font)

Arguments

Type

Name

Description

string

str

a string

Font

font

a Font

Summary

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

Anchor [6/9]

Source code

public Anchor(float leading, Chunk chunk)

Arguments

Type

Name

Description

float

leading

the leading

Chunk

chunk

a Chunk

Summary

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

Anchor [7/9]

Source code

public Anchor(float leading, string str)

Arguments

Type

Name

Description

float

leading

the leading

string

str

a string

Summary

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

Anchor [8/9]

Source code

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

Arguments

Type

Name

Description

float

leading

the leading

string

str

a string

Font

font

a Font

Summary

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

Anchor [9/9]

Source code

public Anchor(Phrase phrase)

Arguments

Type

Name

Description

Phrase

phrase

Methods

Process

Source code

public override bool Process(IElementListener listener)

Arguments

Type

Name

Description

IElementListener

listener

an IElementListener

Summary

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

Returns

true if the element was processed successfully

ApplyAnchor

Source code

protected virtual bool ApplyAnchor(Chunk chunk, bool notGotoOK, bool localDestination)

Arguments

Type

Name

Description

Chunk

chunk

bool

notGotoOK

bool

localDestination

Properties

Chunks

public override IList<Chunk> Chunks { get; }

Summary

Gets all the chunks in this element.

Value

an ArrayList

Type

public override int Type { get; }

Summary

Gets the type of the text element.

Value

a type

Name

public virtual string Name { get; set; }

Summary

Name of this Anchor.

Reference

public virtual string Reference { get; set; }

Summary

reference of this Anchor.

Url

public virtual Uri Url { get; }

Summary

reference of this Anchor.

Value

an Uri

Generated with ModularDoc