HighlightOptions
Leave feedback
On this page
Provides the options which are used to extract a highlight (a block of text aroud found text in search scenarios).
public sealed class HighlightOptions
| Name | Description |
|---|---|
| HighlightOptions() | Initializes a new instance of the HighlightOptions class which is used to extract a fixed-length highlight. |
| HighlightOptions(int) | Initializes a new instance of the HighlightOptions class which is used to extract a fixed-length highlight. |
| HighlightOptions(int?, bool) | Initializes a new instance of the HighlightOptions class which is used to extract a line-limited highlight. |
| HighlightOptions(int?, int) | Initializes a new instance of the HighlightOptions class which is used to extract a highlight with the fixed word count. |
| HighlightOptions(int?, int?, bool) | Initializes a new instance of the HighlightOptions class. |
| Name | Description |
|---|---|
| IsLineLimited { get; set; } | Gets value that indicates whether highlight extraction is limited by the start (or the end) of a text line. |
| MaxLength { get; set; } | Gets a maximum text length. |
| WordCount { get; set; } | Gets a maximum word count. |
An instance of HighlightOptions class is used as parameter in GetHighlight method. See the usage examples there.
Learn more:
- namespace GroupDocs.Parser.Options
- assembly GroupDocs.Parser
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.