Method AddChild
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
AddChild(string)
Adds new PdfOutlineItem with specified title to the end of this PdfOutlineItem's collection of child items.
public PdfOutlineItem AddChild(string title)
Parameters
titlestringThe text to be displayed on the screen for the new PdfOutlineItem.
Returns
- PdfOutlineItem
The newly created PdfOutlineItem.
Remarks
See examples of adding child bookmarks in the PDF bookmarks section.
AddChild(string, PdfAction)
Adds new PdfOutlineItem with specified title and action to the end of this PdfOutlineItem's collection of child items.
public PdfOutlineItem AddChild(string title, PdfAction action)
Parameters
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 created PdfOutlineItem.
Remarks
See examples of adding child bookmarks in the PDF bookmarks section.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleisnull.
AddChild(string, PdfDocumentView)
Adds new PdfOutlineItem with specified title and document view to the end of this PdfOutlineItem's collection of child items.
public PdfOutlineItem AddChild(string title, PdfDocumentView view)
Parameters
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 created PdfOutlineItem.
Remarks
See examples of adding child bookmarks in the PDF bookmarks section.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleorviewisnull.
AddChild(string, PdfPage)
Adds new PdfOutlineItem with specified title and page to the end of this PdfOutlineItem's collection of child items.
public PdfOutlineItem AddChild(string title, PdfPage page)
Parameters
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 created PdfOutlineItem.
Remarks
See examples of adding child bookmarks in the PDF bookmarks section.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleorpageisnull.
AddChild(string, int)
Adds new PdfOutlineItem with specified title and page index to the end of this PdfOutlineItem's collection of child items.
public PdfOutlineItem AddChild(string title, int pageIndex)
Parameters
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 created PdfOutlineItem.
Remarks
See examples of adding child bookmarks in the PDF bookmarks section.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleisnull.