Method Add
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Add(string)
Creates a new PdfListItem with the specified text and adds it to this collection.
public void Add(string text)
Parameters
textstringThe text of the list item to create and add to the collection.
Exceptions
- ArgumentNullException
Thrown when
textisnull.
Add(PdfListItem)
Adds the specified PdfListItem to this collection.
public void Add(PdfListItem item)
Parameters
itemPdfListItemThe list item to add to the collection.
Exceptions
- ArgumentNullException
Thrown when
itemisnull.
Add(IEnumerable<string>)
Creates new PdfListItem instances from the specified texts and adds them to this collection.
public void Add(IEnumerable<string> texts)
Parameters
textsIEnumerable<string>The sequence of texts used to create and add new list items to the collection.
Remarks
The supplied sequence is fully enumerated exactly once during this method call.
Exceptions
- ArgumentNullException
Thrown when
textsisnull.- ArgumentException
Thrown when the sequence contains a
nullelement.
Add(IEnumerable<PdfListItem>)
Adds the specified PdfListItem instances to this collection.
public void Add(IEnumerable<PdfListItem> items)
Parameters
itemsIEnumerable<PdfListItem>The sequence of list items to add to the collection.
Remarks
The supplied sequence is fully enumerated exactly once during this method call.
Exceptions
- ArgumentNullException
Thrown when
itemsisnull.- ArgumentException
Thrown when the sequence contains a
nullelement.