A ListItem is a Paragraph
that can be added to a List.
Namespace: iTextSharp.textAssembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
Examples
Example 1:
CopyC#
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#
The result of this code looks like this:
This is an item
This is another item

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>);

List overview = new List(false, 10); overview.Add(<strong>new ListItem("This is an item")</strong>); overview.Add("This is another item");
Inheritance Hierarchy
System..::..Object
System.Collections..::..ArrayList
iTextSharp.text..::..Phrase
iTextSharp.text..::..Paragraph
iTextSharp.text..::..ListItem
System.Collections..::..ArrayList
iTextSharp.text..::..Phrase
iTextSharp.text..::..Paragraph
iTextSharp.text..::..ListItem