public class HighlightOptions extends TextOptions implements IHighlightOptions
Learn more
core| Modifier | Constructor and Description |
|---|---|
|
HighlightOptions()
Initializes a new instance of the
HighlightOptions class. |
|
HighlightOptions(Object data)
Initializes a new instance of the
TextOptions class. |
protected |
HighlightOptions(Object state1,
Object state2)
Initializes a new instance of the
TextOptions class. |
| Modifier and Type | Method and Description |
|---|---|
Color |
getHighlightColor()
Gets a color that is used to highlight occurrences.
|
String |
getTermHighlightEndTag()
Gets the end tag of the highlighting of the found word.
|
String |
getTermHighlightStartTag()
Gets the start tag of the highlighting of the found word.
|
int |
getTermsAfter()
Gets the maximum number of words in a text snippet after highlighted word.
|
int |
getTermsBefore()
Gets the maximum number of words in a text snippet before highlighted word.
|
int |
getTermsTotal()
Gets the maximum number of words in a text snippet.
|
boolean |
getUseInlineStyles()
Gets a value indicating whether inline styles are used to highlight occurrences.
|
void |
setHighlightColor(Color value)
Sets a color that is used to highlight occurrences.
|
void |
setTermHighlightEndTag(String value)
Sets the end tag of the highlighting of the found word.
|
void |
setTermHighlightStartTag(String value)
Sets the start tag of the highlighting of the found word.
|
void |
setTermsAfter(int value)
Sets the maximum number of words in a text snippet after highlighted word.
|
void |
setTermsBefore(int value)
Sets the maximum number of words in a text snippet before highlighted word.
|
void |
setTermsTotal(int value)
Sets the maximum number of words in a text snippet.
|
void |
setUseInlineStyles(boolean value)
Sets a value indicating whether inline styles are used to highlight occurrences.
|
getAdditionalFields, getCancellation, getCore, getCustomExtractor, getGenerateHead, getImageIndexingOptions, getMetadataIndexingOptions, getOcrIndexingOptions, getUseRawTextExtraction, setAdditionalFields, setCancellation, setCustomExtractor, setGenerateHead, setUseRawTextExtractionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdditionalFields, getCancellation, getCustomExtractor, getGenerateHead, getImageIndexingOptions, getMetadataIndexingOptions, getOcrIndexingOptions, getUseRawTextExtraction, setAdditionalFields, setCancellation, setCustomExtractor, setGenerateHead, setUseRawTextExtractionpublic HighlightOptions()
HighlightOptions class.public HighlightOptions(Object data)
TextOptions class.data - The serialized data.public Color getHighlightColor()
getHighlightColor in interface IHighlightOptionspublic String getTermHighlightEndTag()
getTermHighlightEndTag in interface IHighlightOptionspublic String getTermHighlightStartTag()
getTermHighlightStartTag in interface IHighlightOptionspublic int getTermsAfter()
7.getTermsAfter in interface IHighlightOptionspublic int getTermsBefore()
7.getTermsBefore in interface IHighlightOptionspublic int getTermsTotal()
21.getTermsTotal in interface IHighlightOptionspublic boolean getUseInlineStyles()
true.getUseInlineStyles in interface IHighlightOptionspublic void setHighlightColor(Color value)
setHighlightColor in interface IHighlightOptionsvalue - A color that is used to highlight occurrences.public void setTermHighlightEndTag(String value)
setTermHighlightEndTag in interface IHighlightOptionsvalue - The end tag of the highlighting of the found word.public void setTermHighlightStartTag(String value)
setTermHighlightStartTag in interface IHighlightOptionsvalue - The start tag of the highlighting of the found word.public void setTermsAfter(int value)
7.setTermsAfter in interface IHighlightOptionsvalue - The maximum number of words in a text snippet after highlighted word.public void setTermsBefore(int value)
7.setTermsBefore in interface IHighlightOptionsvalue - The maximum number of words in a text snippet before highlighted word.public void setTermsTotal(int value)
21.setTermsTotal in interface IHighlightOptionsvalue - The maximum number of words in a text snippet.public void setUseInlineStyles(boolean value)
true.setUseInlineStyles in interface IHighlightOptionsvalue - A value indicating whether inline styles are used to highlight occurrences.Copyright © 2026. All rights reserved.