Xamarin.iOS Documentation | ComponentOne
C1.iOS.Viewer Assembly / C1.iOS.Viewer Namespace / FlexViewer Class / SearchText Method
The text to search for
Whether to match whole word
Whether to match case
Whether to search from bottom first
if set to true will highlight the search result in different color].
if set to true will scroll to first search result.


In This Topic
    SearchText Method
    In This Topic
    Starts searching text with specified parameters
    Syntax
    'Declaration
     
    
    Public Function SearchText( _
       ByVal text As String, _
       ByVal matchWholeWord As Boolean, _
       ByVal matchCase As Boolean, _
       ByVal searchUp As Boolean, _
       Optional ByVal highlightSearchResult As Boolean, _
       Optional ByVal scrollToSearchResult 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