Page 1 of 1
Search matches count
Posted: Wed Aug 10, 2016 2:07 am
by max.beliy
How I can get all search matches count ?
Posted: Wed Aug 10, 2016 9:09 am
by Sergey Tkachenko
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).