Bookmark Constructor (IAction, String, Boolean)

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Initializes a new instance of the Bookmark class.

Namespace:  Apitron.PDF.Kit.Interactive.Navigation.DocumentLevel
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax

public Bookmark(
	IAction action,
	string title,
	bool isOpen = false
)

Parameters

action
Type: Apitron.PDF.Kit.Interactive.ActionsIAction
The action.
title
Type: SystemString
The title.
isOpen (Optional)
Type: SystemBoolean
if set to true [is open].
Examples

C#
FixedDocument document = new FixedDocument();
Page page = new Page();

// create named destination and action
Destination namedDestination = new Destination("Page #1");
GoToAction action = new GoToAction(namedDestination);

// add bookmark
Bookmark bookmark = new Bookmark(action, "Page #1 outline" );

document.Bookmarks.AddLast(bookmark);
document.Pages.Add(page);
See Also

Reference