Class: Wx::TextSearch
- Inherits:
-
Object
- Object
- Wx::TextSearch
- Defined in:
- lib/wx/doc/gen/text_ctrl.rb
Overview
This class is untracked and should not be derived from nor instances extended!
Search options for Wx::TextCtrl#search_text.
This is a builder class, where property functions can be called during construction. For example:
wxTextSearchResult result =
textctrl->SearchText(wxTextSearch(L"Institutional Research").
SearchDirection(wxTextSearch::Direction::Down).
MatchCase().
MatchWholeWord());
Defined Under Namespace
Classes: Direction
Instance Method Summary collapse
- #get_direction ⇒ Wx::HTML::HTMLDataObject::Direction
- #get_search_value ⇒ String
- #get_starting_position ⇒ Integer
-
#initialize(text) ⇒ Wx::TextSearch
constructor
The string to search for.
-
#match_case(matchCase = true) ⇒ Wx::TextSearch
Whether the search should match case (i.e., be case sensitive).
- #match_case? ⇒ Boolean
-
#match_whole_word(matchWholeWord = true) ⇒ Wx::TextSearch
Whether the search should match the whole word.
-
#search_direction(direction) ⇒ Wx::TextSearch
Whether the search should go up or down in the text control.
-
#search_value(value) ⇒ Wx::TextSearch
The string to search for.
-
#start(startPosition) ⇒ Wx::TextSearch
Where the search should start from.
- #whole_word? ⇒ Boolean
Constructor Details
#initialize(text) ⇒ Wx::TextSearch
The string to search for.
1016 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1016 def initialize(text) end |
Instance Method Details
#get_direction ⇒ Wx::HTML::HTMLDataObject::Direction
1011 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1011 def get_direction; end |
#get_search_value ⇒ String
987 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 987 def get_search_value; end |
#get_starting_position ⇒ Integer
993 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 993 def get_starting_position; end |
#match_case(matchCase = true) ⇒ Wx::TextSearch
Whether the search should match case (i.e., be case sensitive).
By default, this is false; search will be case insensitive.
1028 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1028 def match_case(matchCase=true) end |
#match_case? ⇒ Boolean
999 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 999 def match_case?; end |
#match_whole_word(matchWholeWord = true) ⇒ Wx::TextSearch
Whether the search should match the whole word.
By default, this is false; searching will not match by whole word.
1035 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1035 def match_whole_word(matchWholeWord=true) end |
#search_direction(direction) ⇒ Wx::TextSearch
Whether the search should go up or down in the text control.
By default, search will go downward.
1042 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1042 def search_direction(direction) end |
#search_value(value) ⇒ Wx::TextSearch
The string to search for.
1021 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1021 def search_value(value) end |
#start(startPosition) ⇒ Wx::TextSearch
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.
1049 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1049 def start(startPosition) end |
#whole_word? ⇒ Boolean
1005 |
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1005 def whole_word?; end |