replace_text method

replace_text

Replaces all occurrences of the specified text with another specified text.

def replace_text(self, old_text, new_text, options, callback):
    ...
ParameterTypeDescription
old_textstrThe string to be replaced.
new_textstrThe string to replace all occurrences of oldText.
optionsITextSearchOptionsText search options ITextSearchOptions.
callbackIFindResultCallbackCallback object for saving replacement operation result IFindResultCallback.

See Also