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):
...
| Parameter | Type | Description |
|---|---|---|
| old_text | str | The string to be replaced. |
| new_text | str | The string to replace all occurrences of oldText. |
| options | ITextSearchOptions | Text search options ITextSearchOptions. |
| callback | IFindResultCallback | The callback object for receiving search results IFindResultCallback. |
Examples
The following sample code shows how to replace one specified string with another specified string.
See Also
- class
IFindResultCallback - class
IPresentation - class
ITextSearchOptions - module
aspose.slides - library
Aspose.Slides