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

An integer value specifying the start position of the bookmark's range.

length number

An integer value specifying 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