Table of Contents

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

text string

The text of the list item to create and add to the collection.

Exceptions

ArgumentNullException

Thrown when text is null.

Add(PdfListItem)

Adds the specified PdfListItem to this collection.

public void Add(PdfListItem item)

Parameters

item PdfListItem

The list item to add to the collection.

Exceptions

ArgumentNullException

Thrown when item is null.

Add(IEnumerable<string>)

Creates new PdfListItem instances from the specified texts and adds them to this collection.

public void Add(IEnumerable<string> texts)

Parameters

texts IEnumerable<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 texts is null.

ArgumentException

Thrown when the sequence contains a null element.

Add(IEnumerable<PdfListItem>)

Adds the specified PdfListItem instances to this collection.

public void Add(IEnumerable<PdfListItem> items)

Parameters

items IEnumerable<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 items is null.

ArgumentException

Thrown when the sequence contains a null element.