Class: Wx::TextSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/gen/text_ctrl.rb

Overview

Note:

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

Constructor Details

#initialize(text) ⇒ Wx::TextSearch

The string to search for.

Parameters:

  • text (String)


1020
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1020

def initialize(text) end

Instance Method Details

#get_directionWx::HTML::HTMLDataObject::Direction



1015
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1015

def get_direction; end

#get_search_valueString

Returns:

  • (String)


991
# File 'lib/wx/doc/gen/text_ctrl.rb', line 991

def get_search_value; end

#get_starting_positionInteger

Returns:

  • (Integer)


997
# File 'lib/wx/doc/gen/text_ctrl.rb', line 997

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.

Parameters:

  • matchCase (Boolean) (defaults to: true)

Returns:



1032
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1032

def match_case(matchCase=true) end

#match_case?Boolean

Returns:

  • (Boolean)


1003
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1003

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.

Parameters:

  • matchWholeWord (Boolean) (defaults to: true)

Returns:



1039
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1039

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.

Parameters:

Returns:



1046
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1046

def search_direction(direction) end

#search_value(value) ⇒ Wx::TextSearch

The string to search for.

Parameters:

  • value (String)

Returns:



1025
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1025

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.

Parameters:

  • startPosition (Integer)

Returns:



1053
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1053

def start(startPosition) end

#whole_word?Boolean

Returns:

  • (Boolean)


1009
# File 'lib/wx/doc/gen/text_ctrl.rb', line 1009

def whole_word?; end