Adds a bookmark to the current page.

Namespace:  C1.Silverlight.Pdf
Assembly:  C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)

Syntax

C#
public void AddBookmark(
	string text,
	int level,
	double y,
	bool isOpen = true
)
Visual Basic
Public Sub AddBookmark ( _
	text As String, _
	level As Integer, _
	y As Double, _
	Optional isOpen As Boolean = True _
)

Parameters

text
Type: System..::..String
Text that appears on the outline tree.
level
Type: System..::..Int32
Outline level (zero is the top level).
y
Type: System..::..Double
Position on the current page where the outline entry is located (in points).
isOpen (Optional)
Type: System..::..Boolean
Whether the children of the bookmark are initially visible.

Remarks

Most long Pdf documents contain an outline structure that is displayed on a pane on the left of the reader. The outline makes it easy to browse through a document's structure and find specific topics. The AddBookmark method allows you to build this outline structure by adding outline entries (bookmarks).

See Also