A document can contain hyperlinks pointing to external locations or associated with bookmarks in the same document.
A Bookmark exposes a document range with a name. The range can have zero length. The name should start with a letter and must be unique in the collection of bookmarks in the current document.
To create a new bookmark, invoke the end-user Insert Bookmark dialog using the Bookmark ribbon button located in the ribbon's Insert tab in the Links group. The Bookmark form is illustrated in the following picture.
The bookmarks whose names begin with the underscore symbol ("_") are not displayed within the Bookmarks dialog.
You can visualize a bookmark in a document, and specify its color using the ASPxRichEditSettings.Bookmarks property (in the Settings.Bookmarks notation), as illustrated below.
Bookmarks in the document can be referenced by a Hyperlink. While inserting, a hyperlink can be customized to point to a bookmark specified by its name within the document.
Programmatically, a bookmark is implemented as the Bookmark client object. A list of bookmark objects in the sub-document can be accessed through the bookmarksInfo client property (SubDocument.bookmarksInfo) in the following notation:
You also can use the SubDocument.findBookmarks method to get portion of bookmarks that are filtered by their location (using overloads with position, interval, and intervals parameters) or name (using overloads with name or regExp parameters).
A bookmark can be defined using the following characteristics.
Gets a command to invoke the Bookmark dialog window.
The Hyperlink marks the document range as the hot spot in the document. It can be activated with a mouse click to navigate the specified location (an external web resource or a local document bookmark). An external hyperlink is opened in a new browser tab. The hyperlink has a tooltip, and can be marked as visited.
To create a new hyperlink, invoke the end-user Insert Hyperlink dialog using the Hyperlink ribbon button located in the ribbon's Insert tab in the Links group. The Hyperlink form is illustrated in the picture below.