Version

AddBookmark Method (PdfDocument)

Creates a new bookmark object that implements the IBookmark interface and adds it to the internal collection of objects.
Syntax
'Declaration
 
Public Function AddBookmark( _
   ByVal pageIndex As Integer, _
   ByVal x As Single, _
   ByVal y As Single, _
   ByVal title As String, _
   ByVal opened As Boolean _
) As IBookmark
public IBookmark AddBookmark( 
   int pageIndex,
   float x,
   float y,
   string title,
   bool opened
)

Parameters

pageIndex
Page index.
x
X-component of the target.
y
Y-component of the target.
title
The title of the bookmark.
opened
A boolean value indicating whether to show sub-level bookmarks.

Return Value

An object that implements the IBookmark interface.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also