Skip to main content
A newer version of this page is available. .

SubDocument.findBookmarks(arg) Method

Returns an array of bookmarks that match the search conditions.

Declaration

findBookmarks(
    arg: number | Interval | Interval[] | string | RegExp
): Bookmark[]

Parameters

Name Type Description
arg number | Interval | Interval[] | string | RegExp

Contains a position or interval(s) where to search bookmarks, or a bookmark name, or a regular expression.

Returns

Type Description
Bookmark[]

An array of the Bookmark objects.

Remarks

The interval intersects a range if they include at least one common element. If a document’s object has zero range length and its start position is included in the specified interval(s), the method includes the object in the resulting array.

richEdit.document.activeSubDocument.findBookmarks(richEdit.selection.intervals);
See Also