public class HighlightItem extends Object
An instance of HighlightItem
class is used as return value of Parser.getHighlight(int, boolean, com.groupdocs.parser.options.HighlightOptions)
method,
SearchResult.getLeftHighlightItem()
and SearchResult.getRightHighlightItem()
properties. See the usage examples there.
Constructor and Description |
---|
HighlightItem(int position,
String text)
Initializes a new instance of the
HighlightItem class. |
Modifier and Type | Method and Description |
---|---|
int |
getPosition()
Gets the position in the document text.
|
String |
getText()
Gets the text of the highlight.
|
public HighlightItem(int position, String text)
HighlightItem
class.position
- The position in the document text.text
- The text of the highlight.public int getPosition()
public String getText()