Skip to main content

CopyContentCommand.execute(position) Method

Executes the CopyContentCommand command with the specified parameter.

Declaration

execute(
    position: number
): boolean

Parameters

Name Type Description
position number

A value that specifies the position of the inserted text.

Returns

Type Description
boolean

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

Remarks

Usage example:

richEdit.commands.copyContent.execute(2);
See Also