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
floatthe leading
Anchor(float, string)
Constructs an Anchor with a certain leading and a certain string.
public Anchor(float leading, string str)
Parameters
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
Anchor(float, Chunk)
Constructs an Anchor with a certain Chunk and a certain leading.
public Anchor(float leading, Chunk chunk)
Parameters
Anchor(string)
Constructs an Anchor with a certain string.
public Anchor(string str)
Parameters
str
stringa string
Anchor(string, Font)
Constructs an Anchor with a certain string and a certain Font.
public Anchor(string str, Font font)
Parameters
Anchor(Chunk)
Constructs an Anchor with a certain Chunk.
public Anchor(Chunk chunk)
Parameters
chunk
Chunka Chunk
Anchor(Phrase)
Constructs an Anchor with a certain Phrase .
public Anchor(Phrase phrase)
Parameters
phrase
Phrasea Phrase
Fields
name
This is the name of the Anchor.
protected string name
Field Value
reference
This is the reference of the Anchor.
protected string reference
Field Value
Properties
Chunks
implementation of the Element-methods
public override IList<Chunk> Chunks { get; }
Property Value
Name
Name of this Anchor.
public string Name { get; set; }
Property Value
Reference
reference of this Anchor.
public string Reference { get; set; }
Property Value
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
IElementListeneran IElementListener
Returns
- bool
true if the element was processed successfully