Skip to main content

InsertBookmarkCommand.execute(name, start, length) Method

Executes the InsertBookmarkCommand command with the specified parameters.

Declaration

execute(
    name: string,
    start: number,
    length: number
): boolean

Parameters

Name Type Description
name string

A string value specifying a name of the created bookmark.

start number

The start position of the bookmark’s range.

length number

The length of the bookmark’s range.

Returns

Type Description
boolean

true if the command has been successfully executed; false if the command execution has failed.

Remarks

Usage example:

richEdit.commands.insertBookmark.execute("firstBookmark", 10, 2);
See Also