PdfOutlineItem Object

Overview

PdfOutlineItem represents an individual outline item (bookmark) in the document's outline hierarchy. This object is obtainable via the PdfOutline collection. For more information on outlines, see Section 10.2 - Outlines.

Member List

Properties


PdfOutline Children (Read-only)
Returns an instance of the PdfOutline collection representing this item's children.

int Index (Read-only)
Returns this item's 1-based index in the document's Outline collection.

int Level (Read-only)
Returns this item's level (depth) in the hierarchy. Top-level items' depth is 0, their direct children's depth is 1, etc.

string Title (Read/Write)
Returns or specifies this item's text string (title).

Methods


void SetAction(PdfAction Action)
Associates an action specified by Action with this bookmark. This method cannot be called if a destination is already associated with this item.

void SetDest(PdfDest Dest)
Associates a destination specified by Dest with this bookmark. This method cannot be called if an action is already associated with this item.

void SetParams(object Param)

Sets various appearance parameters for this outline item.

Param is a PdfParam object or parameter string specifying the following parameters:

  • Bold (optional) - if set to True, the item's text appears in bold. False by default.
  • Italic (optional) - if set to True, the item's text appears in italic. False by default.
  • Expanded (optional) - if set to False, the item will initially appear collapsed (closed). True by default.
  • Color (optional) - specifies the item's color by name or hex number. Black by default.
  • R, G, B (optional): an alternative way to specify the item's color