Method InsertBefore
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
InsertBefore(PdfOutlineItem, string)
Creates a new outline item with the specified title and inserts it before the specified item in the collection.
public PdfOutlineItem InsertBefore(PdfOutlineItem item, string title)
Parameters
itemPdfOutlineItemThe existing outline item before which the new item will be inserted.
titlestringThe title of the outline item to create.
Returns
- PdfOutlineItem
The newly created outline item.
Exceptions
- ArgumentNullException
Thrown when
itemortitleisnull.- ArgumentException
Thrown when
itemdoes not belong to this collection.