Skip to main content

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 string | number | RegExp | Interval | Interval[]

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

Returns

Type Description
Bookmark[]

An array of bookmarks.

Remarks

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

You can use the bookmarksInfo property to get information about all bookmarks in the sub-document.

Refer to the following section for more information: Access a Structural Element.

See Also