aspnetcore-js-devexpress-dot-richedit-b8e0e501.md
Declares search settings.
export interface IRichEditSearchSettings
The search panel and the Find and Replace dialog allow users to locate and modify text in a document opened in the Rich Text Editor. You can filter search results to prevent users from modifying certain document intervals. The example below demonstrates how to exclude intervals that contain fields from search results:
const options = DevExpress.RichEdit.createOptions();
options.search.filterInterval = (subDocument, interval) =>
subDocument.fields.find(interval).length == 0;
// ...
Specifies a callback function that filters search results.
filterInterval?: (subDocument: SubDocumentBase, interval: IInterval) => boolean
| Type | Description |
|---|---|
| (subDocument: SubDocumentBase, interval: IInterval) => boolean |
A callback function that defines whether the current search result is visible. The function parameters are the sub-document and text interval that contain this result.
|