Starts a new search.
Public Function Search( _
ByVal As String, _
ByVal As Integer, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean _
) As TextMatch
Dim instance As TextSearcher
Dim str As String
Dim firstPos As Integer
Dim searchFwd As Boolean
Dim matchCase As Boolean
Dim wholeWord As Boolean
Dim value As TextMatch
value = instance.Search(str, firstPos, searchFwd, matchCase, wholeWord)
public TextMatch Search(
string ,
int ,
bool ,
bool ,
bool
)
Parameters
- str
- String to search.
- firstPos
-
An index which specifies where to start the search.
- searchFwd
- It affects the behavior of the search when there's no occurrence of the specified string in forward search. If true, this method continues search from the beginning of the text to to the position of ; otherwise simply returns no TextZone (not found).
- matchCase
- true to do case-sensitive search; otherwise do case-insensitive search.
- wholeWord
- true to search whole word. For example, if you search the word
"search"
and =true, it does not match with "Research"
.
Return Value
Array of the
TextZone instances which matches to the search string. If none is found, returns
nullptr
.
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family