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 |
|
Remarks
Usage example:
richEdit.commands.insertBookmark.execute("firstBookmark", 10, 2);
See Also