#include <wx/textctrl.h>
Search options for wxTextCtrl::SearchText().
This is a builder class, where property functions can be called during construction. For example:
Public Types | |
| enum class | Direction { Down , Up } |
| One of the following values can be passed to wxTextSearch::SearchDirection() to control direction when searching a wxTextCtrl. More... | |
Public Member Functions | |
| wxTextSearch (const wxString &text) | |
| The string to search for. More... | |
| wxTextSearch & | SearchValue (const wxString &value) |
| The string to search for. More... | |
| wxTextSearch & | MatchCase (const bool matchCase=true) |
| Whether the search should match case (i.e., be case sensitive). More... | |
| wxTextSearch & | MatchWholeWord (const bool matchWholeWord=true) |
| Whether the search should match the whole word. More... | |
| wxTextSearch & | SearchDirection (const wxTextSearch::Direction direction) |
| Whether the search should go up or down in the text control. More... | |
| wxTextSearch & | Start (const long startPosition) |
| Where the search should start from. More... | |
Public Attributes | |
| wxString | m_searchValue |
| long | m_startingPosition = -1 |
| bool | m_matchCase = true |
| bool | m_wholeWord = false |
| Direction | m_direction = Direction::Down |
|
strong |
One of the following values can be passed to wxTextSearch::SearchDirection() to control direction when searching a wxTextCtrl.
| Enumerator | |
|---|---|
| Down | |
| Up | |
|
inline |
The string to search for.
|
inline |
Whether the search should match case (i.e., be case sensitive).
By default, this is false; search will be case insensitive.
|
inline |
Whether the search should match the whole word.
By default, this is false; searching will not match by whole word.
|
inline |
Whether the search should go up or down in the text control.
By default, search will go downward.
|
inline |
The string to search for.
|
inline |
Where the search should start from.
By default, if searching down, then the search will start at 0. If searching up, then will start at the end of control.
| Direction wxTextSearch::m_direction = Direction::Down |
| bool wxTextSearch::m_matchCase = true |
| wxString wxTextSearch::m_searchValue |
| long wxTextSearch::m_startingPosition = -1 |
| bool wxTextSearch::m_wholeWord = false |