C# Class iTextSharp.text.Phrase

A Phrase is a series of Chunks.
A Phrase has a main Font, but some chunks within the phrase can have a Font that differs from the main Font. All the Chunks in a Phrase have the same leading.
Inheritance: System.Collections.ArrayList, ITextElementArray
Afficher le fichier Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Protected Properties

Свойство Type Description
font Font
hyphenation IHyphenationEvent
leading System.Single

Méthodes publiques

Méthode Description
Add ( Object o ) : bool

Adds a Chunk, Anchor or another Phrase to this Phrase.

Add ( int index, Object o ) : void

Adds a Chunk, an Anchor or another Phrase to this Phrase.

AddAll ( ICollection collection ) : bool

Adds a collection of Chunks to this Phrase.

AddSpecial ( Object obj ) : void

Adds a Object to the Paragraph.

GetInstance ( String str ) : Phrase
GetInstance ( int leading, String str ) : Phrase
GetInstance ( int leading, String str, Font font ) : Phrase
HasLeading ( ) : bool
IsContent ( ) : bool
IsEmpty ( ) : bool

Checks is this Phrase contains no or 1 empty Chunk.

IsNestable ( ) : bool
IsTag ( string tag ) : bool

Checks if a given tag corresponds with this object.

Phrase ( ) : System

Constructs a Phrase without specifying a leading.

Phrase ( Chunk chunk ) : System

Constructs a Phrase with a certain Chunk.

Phrase ( Phrase phrase ) : System
Phrase ( float leading ) : System

Constructs a Phrase with a certain leading.

Phrase ( float leading, Chunk chunk ) : System

Constructs a Phrase with a certain Chunk and a certain leading.

Phrase ( float leading, string str ) : System

Constructs a Phrase with a certain leading and a certain string.

Phrase ( float leading, string str, Font font ) : System
Phrase ( string str ) : System

Constructs a Phrase with a certain string.

Phrase ( string str, Font font ) : System

Constructs a Phrase with a certain string and a certain Font.

Process ( IElementListener listener ) : bool

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

ToString ( ) : string

Méthodes protégées

Méthode Description
AddChunk ( Chunk chunk ) : bool

Adds a Chunk.

This method is a hack to solve a problem I had with phrases that were split between chunks in the wrong place.

Private Methods

Méthode Description
Phrase ( bool dummy ) : System

Method Details

Add() public méthode

Adds a Chunk, Anchor or another Phrase to this Phrase.
public Add ( Object o ) : bool
o Object an object of type Chunk, Anchor or Phrase
Résultat bool

Add() public méthode

Adds a Chunk, an Anchor or another Phrase to this Phrase.
public Add ( int index, Object o ) : void
index int index at which the specified element is to be inserted
o Object an object of type Chunk, Anchor, or Phrase
Résultat void

AddAll() public méthode

Adds a collection of Chunks to this Phrase.
public AddAll ( ICollection collection ) : bool
collection ICollection a collection of Chunks, Anchors and Phrases.
Résultat bool

AddChunk() protected méthode

Adds a Chunk.
This method is a hack to solve a problem I had with phrases that were split between chunks in the wrong place.
protected AddChunk ( Chunk chunk ) : bool
chunk Chunk a Chunk
Résultat bool

AddSpecial() public méthode

Adds a Object to the Paragraph.
public AddSpecial ( Object obj ) : void
obj Object the object to add.
Résultat void

GetInstance() public static méthode

public static GetInstance ( String str ) : Phrase
str String
Résultat Phrase

GetInstance() public static méthode

public static GetInstance ( int leading, String str ) : Phrase
leading int
str String
Résultat Phrase

GetInstance() public static méthode

public static GetInstance ( int leading, String str, Font font ) : Phrase
leading int
str String
font Font
Résultat Phrase

HasLeading() public méthode

public HasLeading ( ) : bool
Résultat bool

IsContent() public méthode

public IsContent ( ) : bool
Résultat bool

IsEmpty() public méthode

Checks is this Phrase contains no or 1 empty Chunk.
public IsEmpty ( ) : bool
Résultat bool

IsNestable() public méthode

public IsNestable ( ) : bool
Résultat bool

IsTag() public static méthode

Checks if a given tag corresponds with this object.
public static IsTag ( string tag ) : bool
tag string the given tag
Résultat bool

Phrase() public méthode

Constructs a Phrase without specifying a leading.
public Phrase ( ) : System
Résultat System

Phrase() public méthode

Constructs a Phrase with a certain Chunk.
public Phrase ( Chunk chunk ) : System
chunk Chunk a Chunk
Résultat System

Phrase() public méthode

public Phrase ( Phrase phrase ) : System
phrase Phrase
Résultat System

Phrase() public méthode

Constructs a Phrase with a certain leading.
public Phrase ( float leading ) : System
leading float the leading
Résultat System

Phrase() public méthode

Constructs a Phrase with a certain Chunk and a certain leading.
public Phrase ( float leading, Chunk chunk ) : System
leading float the leading
chunk Chunk a Chunk
Résultat System

Phrase() public méthode

Constructs a Phrase with a certain leading and a certain string.
public Phrase ( float leading, string str ) : System
leading float the leading
str string a string
Résultat System

Phrase() public méthode

public Phrase ( float leading, string str, Font font ) : System
leading float
str string
font Font
Résultat System

Phrase() public méthode

Constructs a Phrase with a certain string.
public Phrase ( string str ) : System
str string a string
Résultat System

Phrase() public méthode

Constructs a Phrase with a certain string and a certain Font.
public Phrase ( string str, Font font ) : System
str string a string
font Font a Font
Résultat System

Process() public méthode

Processes the element by adding it (or the different parts) to an iTextSharp.text.IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener an IElementListener
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

font protected_oe property

This is the font of this phrase.
protected Font,iTextSharp.text font
Résultat Font

hyphenation protected_oe property

protected IHyphenationEvent hyphenation
Résultat IHyphenationEvent

leading protected_oe property

This is the leading of this phrase.
protected Single,System leading
Résultat System.Single