Cuminas DjVu SDK for .NET Framework
Search Method (TextSearcher)



String to search.
An index which specifies where to start the search.
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 firstPos; otherwise simply returns no TextZone (not found).
true to do case-sensitive search; otherwise do case-insensitive search.
true to search whole word. For example, if you search the word "search" and wholeWord=true, it does not match with "Research".
Starts a new search.
Syntax
Public Function Search( _
   ByVal str As String, _
   ByVal firstPos As Integer, _
   ByVal searchFwd As Boolean, _
   ByVal matchCase As Boolean, _
   ByVal wholeWord 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)

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 firstPos; 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 wholeWord=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.
Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

TextSearcher Class
TextSearcher Members

Send Feedback