Skip to main content

ReplaceNextCommand.execute(text, replaceText, matchCase) Method

Executes the ReplaceNextCommand command with the specified parameters.

Declaration

execute(
    text: string,
    replaceText: string,
    matchCase: boolean
): boolean

Parameters

Name Type Description
text string

A string value specifying a text to replace.

replaceText string

A string value specifying the inserted text.

matchCase boolean

true, to perform a case-sensitive search; otherwise, false.

Returns

Type Description
boolean

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

Remarks

Usage example:

richEdit.commands.replaceNext.execute("matching text", "new text", true);
See Also