This is the smallest significant part of text that can be added to a document.

Namespace: iTextSharp.text
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public class Chunk : IElement
Visual Basic
Public Class Chunk _
	Implements IElement
Visual C++
public ref class Chunk : IElement

Remarks

Most elements can be divided in one or more Chunks. A chunk is a string with a certain Font. all other layoutparameters should be defined in the object to which this chunk of text is added.

Examples

CopyC#
<strong>Chunk chunk = new Chunk("Hello world", FontFactory.GetFont(FontFactory.COURIER, 20, Font.ITALIC, new Color(255, 0, 0)));</strong>
            document.Add(chunk);

Inheritance Hierarchy

See Also