A Phrase is a series of Chunks.
More...
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.
<strong>
Phrase phrase2 =
new Phrase(16,
"this is a phrase with leading 16");</strong>
<strong>
Phrase phrase3 =
new Phrase(
"this is a phrase with a red, normal font Courier, size 12", FontFactory.GetFont(FontFactory.COURIER, 12,
Font.
NORMAL,
new Color(255, 0, 0)));
Phrase phrase5 =
new Phrase(18,
new Chunk(
"this is a phrase", FontFactory.GetFont(FontFactory.HELVETICA, 16,
Font.
BOLD,
new Color(255, 0, 0)));</strong>
const int NORMAL
this is a possible style.
Definition: Font.cs:89
const int BOLD
this is a possible style.
Definition: Font.cs:92
Font Font
Gets the font of the first Chunk that appears in this Phrase.
Definition: Phrase.cs:395
Phrase()
Constructs a Phrase without specifying a leading.
Definition: Phrase.cs:55
◆ Phrase() [1/9]
iTextSharp.text.Phrase.Phrase |
( |
| ) |
|
Constructs a Phrase without specifying a leading.
<overloads> Has nine overloads. </overloads>
◆ Phrase() [2/9]
iTextSharp.text.Phrase.Phrase |
( |
Phrase |
phrase | ) |
|
◆ Phrase() [3/9]
iTextSharp.text.Phrase.Phrase |
( |
float |
leading | ) |
|
Constructs a Phrase with a certain leading.
- Parameters
-
◆ Phrase() [4/9]
iTextSharp.text.Phrase.Phrase |
( |
Chunk |
chunk | ) |
|
◆ Phrase() [5/9]
iTextSharp.text.Phrase.Phrase |
( |
float |
leading, |
|
|
Chunk |
chunk |
|
) |
| |
Constructs a Phrase with a certain Chunk and a certain leading.
- Parameters
-
leading | the leading |
chunk | a Chunk |
◆ Phrase() [6/9]
iTextSharp.text.Phrase.Phrase |
( |
string |
str | ) |
|
Constructs a Phrase with a certain string.
- Parameters
-
◆ Phrase() [7/9]
iTextSharp.text.Phrase.Phrase |
( |
string |
str, |
|
|
Font |
font |
|
) |
| |
Constructs a Phrase with a certain string and a certain Font.
- Parameters
-
◆ Phrase() [8/9]
iTextSharp.text.Phrase.Phrase |
( |
float |
leading, |
|
|
string |
str |
|
) |
| |
Constructs a Phrase with a certain leading and a certain string.
- Parameters
-
leading | the leading |
str | a string |
◆ Phrase() [9/9]
iTextSharp.text.Phrase.Phrase |
( |
float |
leading, |
|
|
string |
str, |
|
|
Font |
font |
|
) |
| |
◆ Add() [1/2]
virtual void iTextSharp.text.Phrase.Add |
( |
int |
index, |
|
|
Object |
o |
|
) |
| |
|
virtual |
◆ Add() [2/2]
virtual new bool iTextSharp.text.Phrase.Add |
( |
Object |
o | ) |
|
|
virtual |
◆ AddAll()
bool iTextSharp.text.Phrase.AddAll |
( |
ICollection |
collection | ) |
|
Adds a collection of Chunks to this Phrase.
- Parameters
-
collection | a collection of Chunks, Anchors and Phrases. |
- Returns
- true if the action succeeded, false if not.
◆ AddChunk()
bool iTextSharp.text.Phrase.AddChunk |
( |
Chunk |
chunk | ) |
|
|
protected |
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.
- Parameters
-
- Returns
- a bool
◆ AddSpecial()
void iTextSharp.text.Phrase.AddSpecial |
( |
Object |
obj | ) |
|
◆ GetInstance() [1/3]
static Phrase iTextSharp.text.Phrase.GetInstance |
( |
int |
leading, |
|
|
String |
str |
|
) |
| |
|
static |
Gets a special kind of Phrase that changes some characters into corresponding symbols.
- Parameters
-
- Returns
- a newly constructed Phrase
◆ GetInstance() [2/3]
static Phrase iTextSharp.text.Phrase.GetInstance |
( |
int |
leading, |
|
|
String |
str, |
|
|
Font |
font |
|
) |
| |
|
static |
Gets a special kind of Phrase that changes some characters into corresponding symbols.
- Parameters
-
- Returns
- a newly constructed Phrase
◆ GetInstance() [3/3]
static Phrase iTextSharp.text.Phrase.GetInstance |
( |
String |
str | ) |
|
|
static |
Gets a special kind of Phrase that changes some characters into corresponding symbols.
- Parameters
-
- Returns
- a newly constructed Phrase
◆ HasLeading()
bool iTextSharp.text.Phrase.HasLeading |
( |
| ) |
|
◆ IsContent()
bool iTextSharp.text.Phrase.IsContent |
( |
| ) |
|
◆ IsEmpty()
bool iTextSharp.text.Phrase.IsEmpty |
( |
| ) |
|
Checks is this Phrase contains no or 1 empty Chunk.
- Returns
- false if the Phrase contains more than one or more non-emptyChunks.
◆ IsNestable()
bool iTextSharp.text.Phrase.IsNestable |
( |
| ) |
|
◆ IsTag()
static bool iTextSharp.text.Phrase.IsTag |
( |
string |
tag | ) |
|
|
static |
Checks if a given tag corresponds with this object.
- Parameters
-
- Returns
- true if the tag corresponds
◆ Process()
◆ ToString()
override string iTextSharp.text.Phrase.ToString |
( |
| ) |
|
◆ font
Font iTextSharp.text.Phrase.font |
|
protected |
◆ hyphenation
Null, unless the Phrase has to be hyphenated.
- Since
- 2.1.2
◆ leading
Single iTextSharp.text.Phrase.leading = Single.NaN |
|
protected |
This is the leading of this phrase.
summary> This is the font of this phrase.
◆ Chunks
virtual ArrayList iTextSharp.text.Phrase.Chunks |
|
get |
Gets all the chunks in this element.
an ArrayList
◆ Content
String iTextSharp.text.Phrase.Content |
|
get |
Returns the content as a String object. This method differs from toString because toString will return an ArrayList with the toString value of the Chunks in this Phrase.
◆ Font
Font iTextSharp.text.Phrase.Font |
|
getset |
◆ Hyphenation
Setter/getter for the hyphenation.
- Parameters
-
hyphenation | a HyphenationEvent instance |
- Since
- 2.1.2
◆ Leading
virtual float iTextSharp.text.Phrase.Leading |
|
getset |
Gets/sets the leading of this phrase.
the linespacing
◆ Type
virtual int iTextSharp.text.Phrase.Type |
|
get |
Gets the type of the text element.
a type
The documentation for this class was generated from the following file: