Interface IPdfBookMark
Represents a PDF bookmark as seen in the sidebar of PDF reader software to help user's navigate.
Namespace: IronPdf.Bookmarks
Assembly: IronPdf.dll
Syntax
public interface IPdfBookMark
Properties
Children
Bookmarks contained under this bookmark
Declaration
PdfBookMarkCollection Children { get; }
Property Value
Type | Description |
---|---|
PdfBookMarkCollection |
DestinationType
Type of destination represented by the bookmark
Declaration
BookmarkDestinations DestinationType { get; }
Property Value
Type | Description |
---|---|
BookmarkDestinations |
NextBookmark
Next bookmark at the current level, if any
Declaration
IPdfBookMark NextBookmark { get; }
Property Value
Type | Description |
---|---|
IPdfBookMark |
PageIndex
The zero based page number that the bookmark links to.
Declaration
int PageIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The index of the page. |
Parent
Bookmark which contains this bookmark
Declaration
IPdfBookMark Parent { get; }
Property Value
Type | Description |
---|---|
IPdfBookMark |
PreviousBookmark
Previous bookmark at the current level, if any
Declaration
IPdfBookMark PreviousBookmark { get; }
Property Value
Type | Description |
---|---|
IPdfBookMark |
Siblings
Bookmarks contained at the same level and under the same parent as this bookmark
Declaration
PdfBookMarkCollection Siblings { get; }
Property Value
Type | Description |
---|---|
PdfBookMarkCollection |
Text
The display text of the bookmark
Declaration
string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
InsertBookMarkAfter(String, Int32)
Insert a new bookmark after the specified bookmark
Declaration
IPdfBookMark InsertBookMarkAfter(string Text, int PageIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | Text | The display text for the link. |
System.Int32 | PageIndex | The zero based page number to link to. E.g. Page 1 has a PageIndex of 0 |
Returns
Type | Description |
---|---|
IPdfBookMark |
InsertBookMarkBefore(String, Int32)
Insert a new bookmark after the specified bookmark
Declaration
IPdfBookMark InsertBookMarkBefore(string Text, int PageIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | Text | The display text for the link. |
System.Int32 | PageIndex | The zero based page number to link to. E.g. Page 1 has a PageIndex of 0 |
Returns
Type | Description |
---|---|
IPdfBookMark |