 | OutlineItemCreate Method |
Create a new outline item (bookmark).
The returned outline item is not yet part of the outline item tree, but it is associated with the given target document.
It can be inserted at any position in the tree.
Namespace: PdfTools.Toolbox.Pdf.NavigationAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.12.0+5e7853f3b1a241c2ec0dd9e8fc4b9015d17a37d8
Syntaxpublic static OutlineItem Create(
Document targetDocument,
string title,
Destination destination
)
Parameters
- targetDocument Document
-
The output document with which the returned object is associated
- title String
-
The title of the newly created outline item.
- destination Destination
-
The destination that this outline item refers to or
if the item has no destination.
Return Value
OutlineItem
The newly created outline item.
Exceptions| Exception | Condition |
|---|
| ArgumentException | if the targetDocument argument has already been closed |
| ArgumentException | if the targetDocument argument is read-only |
| ArgumentException | if the document associated with the destination argument has already been closed |
| ArgumentException | if the destination argument belongs to a different document |
| ArgumentNullException | if targetDocument is . |
| ArgumentNullException | if title is . |
See Also