Method InsertChild
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
InsertChild(int, string)
Inserts new PdfOutlineItem with specified title into the collection of this PdfOutlineItem's child items at the specified index.
public PdfOutlineItem InsertChild(int index, string title)
Parameters
indexintThe zero-based index at which new PdfOutlineItem should be inserted.
titlestringThe text to be displayed on the screen for the new PdfOutlineItem.
Returns
- PdfOutlineItem
The newly inserted PdfOutlineItem.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleisnull.
InsertChild(int, string, PdfAction)
Inserts new PdfOutlineItem with specified title and action into the collection of this PdfOutlineItem's child items at the specified index.
public PdfOutlineItem InsertChild(int index, string title, PdfAction action)
Parameters
indexintThe zero-based index at which new PdfOutlineItem should be inserted.
titlestringThe text to be displayed on the screen for the new PdfOutlineItem.
actionPdfActionThe action to be performed when the new PdfOutlineItem is activated.
Returns
- PdfOutlineItem
The newly inserted PdfOutlineItem.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleisnull.
InsertChild(int, string, PdfDocumentView)
Inserts new PdfOutlineItem with specified title and document view into the collection of this PdfOutlineItem's child items at the specified index.
public PdfOutlineItem InsertChild(int index, string title, PdfDocumentView view)
Parameters
indexintThe zero-based index at which new PdfOutlineItem should be inserted.
titlestringThe text to be displayed on the screen for the new PdfOutlineItem.
viewPdfDocumentViewThe document view to be displayed when the new PdfOutlineItem is activated.
Returns
- PdfOutlineItem
The newly inserted PdfOutlineItem.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleorviewisnull.
InsertChild(int, string, PdfPage)
Inserts new PdfOutlineItem with specified title and page into the collection of this PdfOutlineItem's child items at the specified index.
public PdfOutlineItem InsertChild(int index, string title, PdfPage page)
Parameters
indexintThe zero-based index at which new PdfOutlineItem should be inserted.
titlestringThe text to be displayed on the screen for the new PdfOutlineItem.
pagePdfPageThe page to be displayed when the new PdfOutlineItem is activated.
Returns
- PdfOutlineItem
The newly inserted PdfOutlineItem.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleorpageisnull.
InsertChild(int, string, int)
Inserts new PdfOutlineItem with specified title and page index into the collection of this PdfOutlineItem's child items at the specified index.
public PdfOutlineItem InsertChild(int index, string title, int pageIndex)
Parameters
indexintThe zero-based index at which new PdfOutlineItem should be inserted.
titlestringThe text to be displayed on the screen for the new PdfOutlineItem.
pageIndexintThe index of the page to be displayed when the new PdfOutlineItem is activated.
Returns
- PdfOutlineItem
The newly inserted PdfOutlineItem.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleisnull.