highlight_text method

highlight_text

Highlights all matches of the sample text with the specified color.

def highlight_text(self, text, highlight_color):
    ...
ParameterTypeDescription
textstrText sample to highlight.
highlight_coloraspose.pydrawing.ColorThe color to highlight the text.

highlight_text

Highlights all matches of the sample text with the specified color.

def highlight_text(self, text, highlight_color, options):
    ...
ParameterTypeDescription
textstrThe text to highlight.
highlight_coloraspose.pydrawing.ColorThe color to highlight the text.
optionsITextHighlightingOptionsHighlighting options.

highlight_text

Highlights all matches of the sample text with the specified color.

def highlight_text(self, text, highlight_color, options, callback):
    ...
ParameterTypeDescription
textstrThe text to highlight.
highlight_coloraspose.pydrawing.ColorThe color to highlight the text.
optionsITextSearchOptionsText search options ITextSearchOptions.
callbackIFindResultCallbackThe callback object for receiving search results IFindResultCallback.

See Also