highlight_regex method
Contents
[
Hide
]highlight_regex
Highlights all matches of the regular expression with the specified color.
def highlight_regex(self, regex, highlight_color):
...
| Parameter | Type | Description |
|---|---|---|
| regex | str | The string contains regular expression to get strings 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 TextFrame using a regular expression.
highlight_regex
Highlights all matches of the regular expression with the specified color.
def highlight_regex(self, regex, highlight_color, options):
...
| Parameter | Type | Description |
|---|---|---|
| regex | str | Text of regular expression to get text to highlight. |
| highlight_color | aspose.pydrawing.Color | The color to highlight the text. |
| options | ITextHighlightingOptions | Highlighting options. |
Examples
The following code sample shows how to highlight text in a TextFrame using a regular expression.
See Also
- class
ITextHighlightingOptions - class
TextFrame - module
aspose.slides - library
Aspose.Slides