This class represent a node in the document's bookmarks hierarchy.
More...
Inherited by Opait.Pdf.PdfBookmarks.
|
static PdfBookmark | Create (PdfPage page, string title, double left, double top, double zoom=0) |
| Creates a bookmark node which opens a specified page at the specified coordinates and zoom level. More...
|
|
static PdfBookmark | CreateFitPage (PdfPage page, string title, bool bounding=false) |
| Creates a bookmark which fits the specified page or its bounding rectangle to the current display area. More...
|
|
static PdfBookmark | CreateFitHorz (PdfPage page, string title, double top, bool bounding=false) |
| Creates a bookmark which fits horizontally, top specified, the specified page or its bounding rectangle to the display area. More...
|
|
static PdfBookmark | CreateFitVert (PdfPage page, string title, double left, bool bounding=false) |
| Creates a bookmark which fits vertically, left specified, the specified page or its bounding rectangle to the display area. More...
|
|
static PdfBookmark | CreateFitRect (PdfPage page, string title, PdfRectangle rc) |
| Creates a bookmark which fits the specified rectangular area of the specified specified page to the current display area. More...
|
|
|
string | Title [get, set] |
| Gets or sets the display title of the bookmark node.
|
|
Color | Color [get, set] |
| Gets or sets the color used to display the bookmark node.
|
|
PdfBookmarkStyle | Style [get, set] |
| Gets or sets the styling flags for the display of the bookmark node.
|
|
bool | IsOpen [get, set] |
| Gets or sets a boolean flag to indicate whether the bookmark node will be open when initially displayed.
|
|
PdfBookmark | FirstChild [get] |
| Gets the first immediate child of this bookmark.
|
|
PdfBookmark | LastChild [get] |
| Gets the last immediate child of this bookmark.
|
|
This class represent a node in the document's bookmarks hierarchy.
◆ PdfBookmark()
Opait.Pdf.PdfBookmark.PdfBookmark |
( |
string |
title | ) |
|
Creates a new bookmark node.
- Parameters
-
title | The display title of the bookmark node. |
◆ Add()
Adds the specified bookmark as the last child of this bookmark.
- Parameters
-
bookmark | The child bookmark to add. |
◆ Create()
static PdfBookmark Opait.Pdf.PdfBookmark.Create |
( |
PdfPage |
page, |
|
|
string |
title, |
|
|
double |
left, |
|
|
double |
top, |
|
|
double |
zoom = 0 |
|
) |
| |
|
static |
Creates a bookmark node which opens a specified page at the specified coordinates and zoom level.
- Parameters
-
page | The page that will be opened if the bookmark is clicked. |
title | The display title of the bookmark. |
left | The left location of the target page. |
top | The top location of the target page. |
zoom | The optional zoom factor. |
- Returns
- The created bookmark.
◆ CreateFitHorz()
static PdfBookmark Opait.Pdf.PdfBookmark.CreateFitHorz |
( |
PdfPage |
page, |
|
|
string |
title, |
|
|
double |
top, |
|
|
bool |
bounding = false |
|
) |
| |
|
static |
Creates a bookmark which fits horizontally, top specified, the specified page or its bounding rectangle to the display area.
- Parameters
-
page | The page that will be opened if the bookmark is clicked. |
title | The display title of the bookmark. |
top | The top coordinate of the displayed page. |
bounding | If specified, then fits the bounding area of the page; otherwise, fit the entire page. |
- Returns
- The created bookmark.
◆ CreateFitPage()
static PdfBookmark Opait.Pdf.PdfBookmark.CreateFitPage |
( |
PdfPage |
page, |
|
|
string |
title, |
|
|
bool |
bounding = false |
|
) |
| |
|
static |
Creates a bookmark which fits the specified page or its bounding rectangle to the current display area.
- Parameters
-
page | The page that will be opened if the bookmark is clicked. |
title | The display title of the bookmark. |
bounding | If specified, then fits the bounding area of the page; otherwise, fit the entire page. |
- Returns
- The created bookmark.
◆ CreateFitRect()
Creates a bookmark which fits the specified rectangular area of the specified specified page to the current display area.
- Parameters
-
page | The page that will be opened if the bookmark is clicked. |
title | The display title of the bookmark. |
rc | The rectangular area of the page to fit. |
- Returns
- The created bookmark.
◆ CreateFitVert()
static PdfBookmark Opait.Pdf.PdfBookmark.CreateFitVert |
( |
PdfPage |
page, |
|
|
string |
title, |
|
|
double |
left, |
|
|
bool |
bounding = false |
|
) |
| |
|
static |
Creates a bookmark which fits vertically, left specified, the specified page or its bounding rectangle to the display area.
- Parameters
-
page | The page that will be opened if the bookmark is clicked. |
title | The display title of the bookmark. |
left | The top coordinate of the displayed page. |
bounding | If specified, then fits the bounding area of the page; otherwise, fit the entire page. |
- Returns
- The created bookmark.
◆ GetChildren()
List< PdfBookmark > Opait.Pdf.PdfBookmark.GetChildren |
( |
| ) |
|
Gets the list of child nodes of this PdfBookmark node.
- Returns
- The list of child nodes.
◆ IndexOf()
int Opait.Pdf.PdfBookmark.IndexOf |
( |
PdfBookmark |
bookmark | ) |
|
Returns the index of a specified child bookmark.
- Parameters
-
bookmark | The child bookmark. |
- Returns
- The index of the child bookmark.
◆ Insert()
void Opait.Pdf.PdfBookmark.Insert |
( |
PdfBookmark |
bookmark, |
|
|
int |
index |
|
) |
| |
Inserts the specified bookmark as the child of this bookmark at the specified index.
- Parameters
-
bookmark | The child bookmark to add. |
index | The index where the bookmark is to be added. |