[wxPython] Search in Folded Text

I am talking here about wxStyledText.

When some text is folded, I would like to skip searching in those lines. I
have a some toolbar thing that allows user to search for text in his/her
editor. Now, is it possible to skip the search for lines that are hidden by
the folds?

Thanks

Hassan Aurag:

When some text is folded, I would like to skip searching in
those lines. I have a some toolbar thing that allows user to
search for text in his/her editor. Now, is it possible to skip
the search for lines that are hidden by the folds?

   When a search finds a position, test that position with the
GetLineVisible call and repeat the search if the line is invisible. Most
people want searches to find text in folded sections and then to unfold to
make the found text visible.

   Neil