A List contains several ListItems.
Namespace: iTextSharp.textAssembly: 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#
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
<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>
<strong>List overview = new List(false, 10); overview.Add(new ListItem("This is an item")); overview.Add("This is another item");</strong>
Inheritance Hierarchy
System..::..Object
iTextSharp.text..::..List
iTextSharp.text..::..GreekList
iTextSharp.text..::..RomanList
iTextSharp.text..::..ZapfDingbatsList
iTextSharp.text..::..ZapfDingbatsNumberList
iTextSharp.text..::..List
iTextSharp.text..::..GreekList
iTextSharp.text..::..RomanList
iTextSharp.text..::..ZapfDingbatsList
iTextSharp.text..::..ZapfDingbatsNumberList