get_highlight method

get_highlight

Extracts a highlight from the document.

Returns

An instance of HighlightItem class that represents the extracted highlight; null if highlight extraction isn’t supported.

def get_highlight(self, position, is_direct, options):
    ...
Parameter Type Description
position int The start position of the highlight.
is_direct bool The value that indicates whether highlight extraction is direct.
true if the higlight is extracted by the right of position; otherwise, false.
options groupdocs.parser.options.HighlightOptions The highlight extraction options.

Example

The following example shows how to extract a highlight that contains 3 words:

See Also