Back to Devexpress

BookmarkBase Class

aspnetcore-js-devexpress-dot-richedit-01fb0d9e.md

latest1.2 KB
Original Source

BookmarkBase Class

A bookmark in the document.

Declaration

ts
export class BookmarkBase extends Bookmark

Inherited Members

index

interval

name

subDocument

delete

Inheritance

Bookmark BookmarkBase

Methods

goTo Method

Selects the bookmark.

Declaration

ts
goTo(): void

Remarks

The goTo method selects the bookmark’s text interval, scrolls the page to the selected start position, and activates the bookmark’s sub-document.

javascript
var bookmark = richEdit.document.bookmarks.find('bookmarkName')[0];
if (bookmark)
    bookmark.goTo();

See Also

Common Use Cases: Bookmark