 |
PdfBookmarksCollectionInsert(Int32, String, PdfDestination) Method |
Creates a new bookmark and inserts it at the specified zero based index in the bookmarks collection.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic PdfBookmark Insert(
int index,
string text,
PdfDestination destination
)
Public Function Insert (
index As Integer,
text As String,
destination As PdfDestination
) As PdfBookmark
Parameters
- index Int32
- The zero based index where to insert the bookmark.
- text String
- The bookmark text.
- destination PdfDestination
- The bookmark destination.
Return Value
PdfBookmarkThe newly created pdf bookmark.
ExamplePdfDestination destination = new PdfDestination(document.Pages[0], 0, 0);
PdfBookmark bookmark = document.Bookmarks.Insert(0, "Preface", destination);
Dim destination As New PdfDestination(document.Pages(0), 0, 0)
Dim bookmark As PdfBookmark = document.Bookmarks.Insert(0, "Preface", destination)
See Also