Skip to main content
Skip table of contents

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
TypeNameMethods
IList<Chunk>Chunks
Gets all the chunks in this element.
get
stringName
Name of this Anchor.
get, set
stringReference
reference of this Anchor.
get, set
intType
Gets the type of the text element.
get
UriUrl
reference of this Anchor.
get

Methods

Public methods
ReturnsName
boolProcess(IElementListener listener)
Processes the element by adding it (or the different parts) to an IElementListener
Protected methods
ReturnsName
boolApplyAnchor(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
TypeNameDescription
floatleadingthe leading
Summary

Constructs an Anchor with a certain leading.

Anchor [3/9]

Source code

public Anchor(Chunk chunk)
Arguments
TypeNameDescription
Chunkchunka Chunk
Summary

Constructs an Anchor with a certain Chunk.

Anchor [4/9]

Source code

public Anchor(string str)
Arguments
TypeNameDescription
stringstra string
Summary

Constructs an Anchor with a certain string.

Anchor [5/9]

Source code

public Anchor(string str, Font font)
Arguments
TypeNameDescription
stringstra string
Fontfonta 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
TypeNameDescription
floatleadingthe leading
Chunkchunka 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
TypeNameDescription
floatleadingthe leading
stringstra 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
TypeNameDescription
floatleadingthe leading
stringstra string
Fontfonta 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
TypeNameDescription
Phrasephrase

Methods

Process

Source code

public override bool Process(IElementListener listener)
Arguments
TypeNameDescription
IElementListenerlisteneran 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
TypeNameDescription
Chunkchunk
boolnotGotoOK
boollocalDestination

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.