Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Find and Replace Panel

The Find and Replace panel allows end-users to search for a specific word or phrase in a document, or search for a specific text and automatically replace it with a specified string.

An end-user can show the panel used to search a text by pressing CTRL+F

DXRichEdit_FindPanel

… and can show the panel with the text search and replacement functionality enabled by pressing CTRL+H.

DXRichEdit_FindReplacePanel

End-users can invoke the Find and Replace panel using the Editing group on the Home ribbon tab. Refer to the Create a Simple Rich Text Editor for details on how to provide the Ribbon UI for the RichEditControl.

DXRichEdit_Dialogs_FindAndReplace_Invoke

To show the panel, you can use the FindCommand and ReplaceCommand commands, or RichEditControl.ShowSearchForm and RichEditControl.ShowReplaceForm methods.

To programmatically perform text search and replacement in the document, you can use the SubDocument.ReplaceAll, SubDocument.FindAll and SubDocument.StartSearch methods, and the ISearchResult interface.