iTextSharp.text is a C# library used for creating, formatting, and manipulating PDF documents. The List class is used to create an ordered or unordered list within a PDF document.
Example 1 - Creating an Unordered List:
List unorderedList = new List(List.UNORDERED); unorderedList.Add(new ListItem("Item 1")); unorderedList.Add(new ListItem("Item 2")); unorderedList.Add(new ListItem("Item 3"));
Example 2 - Creating an Ordered List:
List orderedList = new List(List.ORDERED); orderedList.Add(new ListItem("Item 1")); orderedList.Add(new ListItem("Item 2")); orderedList.Add(new ListItem("Item 3"));
In both examples, the List constructor is used to define the type of list being created (UNORDERED for example 1, and ORDERED for example 2). The Add method is used to add each list item to the list. Each item is created using the ListItem constructor and passing in the text to be displayed.
The iTextSharp.text package is the library used for these examples.
C# (CSharp) iTextSharp.text List.Add - 48 examples found. These are the top rated real world C# (CSharp) examples of iTextSharp.text.List.Add extracted from open source projects. You can rate examples to help us improve the quality of examples.