In This Topic
Starts searching text with specified parameters
Syntax
'Declaration
Public Function SearchText( _
ByVal As String, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean _
) As IList(Of FoundPosition)
'Usage
Dim instance As FlexViewer
Dim text As String
Dim matchWholeWord As Boolean
Dim matchCase As Boolean
Dim searchUp As Boolean
Dim highlightSearchResult As Boolean
Dim scrollToSearchResult As Boolean
Dim value As IList(Of FoundPosition)
value = instance.SearchText(text, matchWholeWord, matchCase, searchUp, highlightSearchResult, scrollToSearchResult)
Parameters
- text
- The text to search for
- matchWholeWord
- Whether to match whole word
- matchCase
- Whether to match case
- searchUp
- Whether to search from bottom first
- highlightSearchResult
- if set to
true
will highlight the search result in different color]. - scrollToSearchResult
- if set to
true
will scroll to first search result.
See Also