Search matches count
Search matches count
How I can get all search matches count ?
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
The current version of SearchText method searches from the current position to the first matched place. It does not search in the document above the current position and below the first match.
So, if you need to know the count, you need to block repainting (BeginUpdate), move the caret to the beginning, and call SearchText until it returns False, and calculate the count of succeeded calls, then unblock repainting (EndUpdate).
We plan to improve searching later in this year (to highlight all matched strings).
So, if you need to know the count, you need to block repainting (BeginUpdate), move the caret to the beginning, and call SearchText until it returns False, and calculate the count of succeeded calls, then unblock repainting (EndUpdate).
We plan to improve searching later in this year (to highlight all matched strings).