Get Started
Plugins
Macros
More information

window.Asc.plugin.executeMethod ("SearchAndReplace", [args], callback)

Description

Defines the method that allows finding and replacing the text.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("SearchAndReplace", [oProperties]);
Parameters
Parameter Description Type Example
oProperties An object which contains the search and replacement strings:
  • searchString - the search string,
    type: string,
    example: "text1";
  • replaceString - the replacement string,
    type: string,
    example: "text2";
  • matchCase - case sensitive or not,
    type: boolean,
    example: true.
object
Returns

The method returns the undefined value.

Example
window.Asc.plugin.executeMethod ("SearchAndReplace", ["searchString": "text1", "replaceString": "text2", "matchCase": true]);