highlight_text method
Contents
[
Hide
]highlight_text
Highlights all matches of the sample text with the specified color.
def highlight_text(self, text, highlight_color):
...
| Parameter | Type | Description |
|---|---|---|
| text | str | The text to highlight. |
| highlight_color | aspose.pydrawing.Color | The color to highlight the text. |
Examples
The following code sample shows how to highlight text in a PowerPoint presentation.
highlight_text
Highlights all matches of the sample text with the specified color.
def highlight_text(self, text, highlight_color, options, callback):
...
| Parameter | Type | Description |
|---|---|---|
| text | str | The text to highlight. |
| highlight_color | aspose.pydrawing.Color | The color to highlight the text. |
| options | ITextSearchOptions | Text search options ITextSearchOptions. |
| callback | IFindResultCallback | The callback object for receiving search results IFindResultCallback. |
Examples
The following code sample shows how to highlight text in a PowerPoint presentation.
See Also
- class
IFindResultCallback - class
IPresentation - class
ITextSearchOptions - module
aspose.slides - library
Aspose.Slides