C# Класс 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.
Наследование: System.Collections.ArrayList, ITextElementArray
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
font Font
hyphenation IHyphenationEvent
leading System.Single

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
Phrase ( bool dummy ) : System

Описание методов

Add() публичный метод

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
Результат bool

Add() публичный метод

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
Результат void

AddAll() публичный метод

Adds a collection of Chunks to this Phrase.
public AddAll ( ICollection collection ) : bool
collection ICollection a collection of Chunks, Anchors and Phrases.
Результат bool

AddChunk() защищенный метод

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
Результат bool

AddSpecial() публичный метод

Adds a Object to the Paragraph.
public AddSpecial ( Object obj ) : void
obj Object the object to add.
Результат void

GetInstance() публичный статический метод

public static GetInstance ( String str ) : Phrase
str String
Результат Phrase

GetInstance() публичный статический метод

public static GetInstance ( int leading, String str ) : Phrase
leading int
str String
Результат Phrase

GetInstance() публичный статический метод

public static GetInstance ( int leading, String str, Font font ) : Phrase
leading int
str String
font Font
Результат Phrase

HasLeading() публичный метод

public HasLeading ( ) : bool
Результат bool

IsContent() публичный метод

public IsContent ( ) : bool
Результат bool

IsEmpty() публичный метод

Checks is this Phrase contains no or 1 empty Chunk.
public IsEmpty ( ) : bool
Результат bool

IsNestable() публичный метод

public IsNestable ( ) : bool
Результат bool

IsTag() публичный статический метод

Checks if a given tag corresponds with this object.
public static IsTag ( string tag ) : bool
tag string the given tag
Результат bool

Phrase() публичный метод

Constructs a Phrase without specifying a leading.
public Phrase ( ) : System
Результат System

Phrase() публичный метод

Constructs a Phrase with a certain Chunk.
public Phrase ( Chunk chunk ) : System
chunk Chunk a Chunk
Результат System

Phrase() публичный метод

public Phrase ( Phrase phrase ) : System
phrase Phrase
Результат System

Phrase() публичный метод

Constructs a Phrase with a certain leading.
public Phrase ( float leading ) : System
leading float the leading
Результат System

Phrase() публичный метод

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
Результат System

Phrase() публичный метод

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
Результат System

Phrase() публичный метод

public Phrase ( float leading, string str, Font font ) : System
leading float
str string
font Font
Результат System

Phrase() публичный метод

Constructs a Phrase with a certain string.
public Phrase ( string str ) : System
str string a string
Результат System

Phrase() публичный метод

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
Результат System

Process() публичный метод

Processes the element by adding it (or the different parts) to an iTextSharp.text.IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener an IElementListener
Результат bool

ToString() публичный метод

public ToString ( ) : string
Результат string

Описание свойств

font защищенное свойство

This is the font of this phrase.
protected Font,iTextSharp.text font
Результат Font

hyphenation защищенное свойство

protected IHyphenationEvent hyphenation
Результат IHyphenationEvent

leading защищенное свойство

This is the leading of this phrase.
protected Single,System leading
Результат System.Single