A ListItem is a Paragraph that can be added to a List.

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

Syntax

C#
public class ListItem : Paragraph
Visual Basic
Public Class ListItem _
	Inherits Paragraph
Visual C++
public ref class ListItem : public Paragraph

Examples

Example 1:
CopyC#
List list = new List(true, 20);
list.Add(<strong>new ListItem("First line")</strong>);
list.Add(<strong>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?")</strong>);
list.Add(<strong>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#
List overview = new List(false, 10);
overview.Add(<strong>new ListItem("This is an item")</strong>);
overview.Add("This is another item");
The result of this code looks like this: This is an item This is another item

Inheritance Hierarchy

See Also