A List contains several ListItems.

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

Syntax

C#
public class List : ITextElementArray, IElement
Visual Basic
Public Class List _
	Implements ITextElementArray, IElement
Visual C++
public ref class List : ITextElementArray, IElement

Examples

Example 1:
CopyC#
<strong>List list = new List(true, 20);
            list.Add(new ListItem("First line"));
            list.Add(new ListItem("The second line is longer to see what happens once the end of the line is reached. Will it start on a new line?"));
            list.Add(new ListItem("Third line"));</strong>
The result of this code looks like this: First line The second line is longer to see what happens once the end of the line is reached. Will it start on a new line? Third line Example 2:
CopyC#
<strong>List overview = new List(false, 10);
            overview.Add(new ListItem("This is an item"));
            overview.Add("This is another item");</strong>
The result of this code looks like this: This is an item This is another item

Inheritance Hierarchy

See Also