__init__ constructor

On this page

init

Initializes a new instance of the HighlightOptions class.

def __init__(self):
    ...

Example

from groupdocs.search.options import HighlightOptions
from groupdocs.search.options import Color

options = HighlightOptions()
options.terms_before = 5
options.terms_after = 5
options.terms_total = 15
options.highlight_color = Color(0, 0, 127)
options.use_inline_styles = True

See Also

On this page