OutlineItemBuilder

OutlineItemBuilder

Overview

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

Builder for a single outline item with fluent API.

This class provides 6 methods for working with OutlineItemBuilder objects in .NET programs. Available methods include: AddChild, SetBold, SetColor, SetItalic, SetOpen. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: IsBold, IsItalic, IsOpen, PageIndex, Title.

Properties

NameTypeAccessDescription
TitlestringRead/WriteGets or sets the title.
PageIndexintReadGets the page index.
IsOpenboolReadGets the is open.
IsBoldboolReadGets the is bold.
IsItalicboolReadGets the is italic.

Methods

SignatureDescription
AddChild(title: string, pageIndex: int)Add a child bookmark.
AddChild(title: string, page: Page)Add a child bookmark pointing to a page.
SetOpen(open: bool)Set whether this bookmark is initially open/expanded.
SetColor(r: double, g: double, b: double)Set the bookmark text color (RGB 0.0-1.0).
SetBold(bold: bool)Set bold style.
SetItalic(italic: bool)Set italic style.

See Also