A Phrase is a series of Chunks.
Namespace: iTextSharp.textAssembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
C# |
---|
public class Phrase : ArrayList, ITextElementArray, IElement |
Visual Basic |
---|
Public Class Phrase _ Inherits ArrayList _ Implements ITextElementArray, IElement |
Visual C++ |
---|
public ref class Phrase : public ArrayList, ITextElementArray, IElement |
Remarks
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.
Examples

// When no parameters are passed, the default leading = 16 <strong>Phrase phrase0 = new Phrase(); Phrase phrase1 = new Phrase("this is a phrase");</strong> // In this example the leading is passed as a parameter <strong>Phrase phrase2 = new Phrase(16, "this is a phrase with leading 16");</strong> // When a Font is passed (explicitely or embedded in a chunk), the default leading = 1.5 * size of the font <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 phrase4 = new Phrase(new Chunk("this is a phrase")); Phrase phrase5 = new Phrase(18, new Chunk("this is a phrase", FontFactory.GetFont(FontFactory.HELVETICA, 16, Font.BOLD, new Color(255, 0, 0)));</strong>
Inheritance Hierarchy
System..::..Object
System.Collections..::..ArrayList
iTextSharp.text..::..Phrase
iTextSharp.text..::..Anchor
iTextSharp.text..::..Paragraph
System.Collections..::..ArrayList
iTextSharp.text..::..Phrase
iTextSharp.text..::..Anchor
iTextSharp.text..::..Paragraph