OutlineItem

Overview

OutlineItem is a class in Aspose.PDF FOSS for .NET.

Represents a bookmark (outline item) in the document outline hierarchy.

This class provides 4 methods for working with OutlineItem objects in .NET programs. Available methods include: Add, Delete, Insert, OutlineItem. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Action, Bold, Children, Color, Destination, DestinationPageNumber, and 6 more.

Properties

NameTypeAccessDescription
TitlestringRead/WriteThe bookmark title.
ActionPdfAction?Read/WriteThe action associated with this outline item, if any.
DestinationIAppointment?Read/WriteThe destination of this outline item (reads /Dest only).
IsOpenboolRead/WriteWhether this outline item is initially open (expanded).
OpenboolRead/WriteAlias for IsOpen.
IsBoldboolRead/WriteWhether the outline item title is displayed in bold.
BoldboolRead/WriteAlias for IsBold.
IsItalicboolRead/WriteWhether the outline item title is displayed in italic.
ItalicboolRead/WriteAlias for IsItalic.
ColorSystem.Drawing.ColorRead/WriteThe color of the outline item title, or empty (default black) if not set.
DestinationPageNumberintReadThe destination page number (1-based), or 0 if not set or not a page destination.
ChildrenIReadOnlyList<OutlineItem>ReadChild outline items.

Methods

SignatureDescription
OutlineItem()Create a new outline item that can be added to an OutlineCollection or another OutlineItem.
Delete()Removes the first child outline item.
Add(child: OutlineItem)Appends a child outline item.
Insert(index: int, child: OutlineItem)Inserts a child outline item at a 1-based position.

See Also