Method IndexOfChild
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
IndexOfChild(string)
Retrieves the zero-based index of the first occurrence of a child PdfOutlineItem with specified title.
public int IndexOfChild(string title)
Parameters
titlestringThe title (the text to be displayed on the screen) of the item to find in the collection.
Returns
- int
The zero-based index of the first occurrence of a child PdfOutlineItem with specified title, if found; otherwise, -1.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
titleisnull.
IndexOfChild(PdfOutlineItem)
Retrieves the zero-based index of the first occurrence of the specified child PdfOutlineItem.
public int IndexOfChild(PdfOutlineItem child)
Parameters
childPdfOutlineItemThe PdfOutlineItem representing the child item to locate in the collection of child items.
Returns
- int
The zero-based index of the first occurrence of the specified child PdfOutlineItem, if found; otherwise, -1.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- ArgumentNullException
childisnull.