Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 2.03 KB

File metadata and controls

23 lines (17 loc) · 2.03 KB

Files to look at:

How to make RichEdit highlight strings that match the Find panel text

Since RichEdit may contain large amounts of content, highlighting substrings may affect application performance; which is why, by default, RichEdit doesn't highlight search strings instances. In any case, Rich content includes undisplayed markup characters and the Grid includes these in the search. This example illustrates how to implement the intended functionality. It uses the Grid custom painting events to highlight a matched string and a custom RichEdit to obtain the text without markup.