BookmarkRemove Method

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Removes the specified bookmark.

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 bool Remove(
	Bookmark bookmark,
	bool removeRecursive = false
)

Parameters

bookmark
Type: Apitron.PDF.Kit.Interactive.Navigation.DocumentLevelBookmark
The bookmark.
removeRecursive (Optional)
Type: SystemBoolean
if set to true [remove recursive].

Return Value

Type: Boolean
true if item is successfully removed; otherwise, false. This method also returns false if item was not found in the bookmark collection.
Examples

C#
FixedDocument document = new FixedDocument();
Bookmark bookmark = document.Bookmarks;

// Get list of childs
IList <Bookmark> bookmarks = bookmark.GetChildren();
Bookmark bookmark1 = bookmarks[2];

// remove 3rd child bookmark from document bookmark collection
bookmark.Remove( bookmark1 );
See Also

Reference