SearchHighlightOptions
Leave feedback
On this page
Provides options for searching and highlighting text in the documents, loaded to the Viewer class
public sealed class SearchHighlightOptions
| Name | Description |
|---|---|
| SearchHighlightOptions() | The default constructor. |
| Name | Description |
|---|---|
| BackgroundColor { get; set; } | Gets or sets the background color for highlighting |
| ForegroundColor { get; set; } | Gets or sets the foreground (text) color for highlighting |
| IsSearchTermRegEx { get; set; } | Gets or sets a value indicating whether the search term should be treated as a regular expression or as a text literal. Default is false — treat as a text literal. |
| SearchTerm { get; set; } | Gets or sets the text (or regex pattern, if IsSearchTermRegEx property is true) to search for. |
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
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.