Table of Contents

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

item PdfOutlineItem

The existing outline item before which the new item will be inserted.

title string

The title of the outline item to create.

Returns

PdfOutlineItem

The newly created outline item.

Exceptions

ArgumentNullException

Thrown when item or title is null.

ArgumentException

Thrown when item does not belong to this collection.