Class
A bookmark.
extractLabel, insertLabel, move, remove, showBookmark
Bookmark
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
bookmarks | Bookmarks | readonly | A collection of bookmarks. |
destination | HyperlinkExternalPageDestinationHyperlinkPageDestination HyperlinkTextDestination HyperlinkURLDestination |
readonly | The text, page, or URL that the hyperlink points to. Can return: HyperlinkTextDestination, HyperlinkPageDestination, HyperlinkExternalPageDestination or HyperlinkURLDestination. |
id | number | readonly | The unique ID of the Bookmark. |
indent | number | readonly | The indent level of the bookmark. |
index | number | readonly | The index of the Bookmark within its containing object. |
label | string | r/w | A property that can be set to any string. |
name | string | r/w | The name of the Bookmark. |
parent | Bookmark Document |
readonly | The parent of the Bookmark (a Document or Bookmark). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
Methods
Instances
string extractLabel (key:
string)
Gets the label value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
void insertLabel (key:
string, value:
string)
Sets the label to the value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
value | string | The value. |
Bookmark move ([to:
LocationOptions=LocationOptions.AT_END][, reference:
any])
Moves the bookmark to the specified location.
Parameter | Type | Description |
---|---|---|
to | LocationOptions: LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN | The bookmark location relative to the reference object or within the containing object. (Optional) (default: LocationOptions.AT_END) |
reference | Bookmark Bookmark Document | The reference object. Note: Required when the to parameter specifies before or after. Can accept: Bookmark, Document or Bookmark. (Optional) |
Element of
Bookmark.parent
Used in:
Bookmark Bookmark.move ([to: LocationOptions=LocationOptions.AT_END][, reference: any])
Return
Bookmark Bookmark.move ([to: LocationOptions=LocationOptions.AT_END][, reference: any])
Bookmark Bookmarks.add (destination: any[, withProperties: Object])
Jongware, 27-Jun-2010 v3.0.3d | Contents :: Index |