Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / Search Method / Search(String,SearchFlags,SearchOrder,SearchFoundFlags,Int32,Int32) Method
The string for which to search.
The SearchFlags enumeration that specifies the search options.
The SearchOrder enumeration that specifies whether the search goes by column, row coordinates or row, column coordinates.
The SearchFoundFlags enumeration that indicates whether the search includes the content in the cell notes, tags, or text.
The row index at which the match is found.
The column index at which the match is found.


In This Topic
    Search(String,SearchFlags,SearchOrder,SearchFoundFlags,Int32,Int32) Method
    In This Topic
    Searches the text in the cells for the specified string with the specified criteria and whether to search notes and tags as well.
    Syntax
    'Declaration
     
    Public Overloads Function Search( _
       ByVal searchString As String, _
       ByVal searchFlags As SearchFlags, _
       ByVal searchOrder As SearchOrder, _
       ByVal searchTarget As SearchFoundFlags, _
       ByRef foundRowIndex As Integer, _
       ByRef foundColumnIndex As Integer _
    ) As SearchFoundFlags
    'Usage
     
    Dim instance As Worksheet
    Dim searchString As String
    Dim searchFlags As SearchFlags
    Dim searchOrder As SearchOrder
    Dim searchTarget As SearchFoundFlags
    Dim foundRowIndex As Integer
    Dim foundColumnIndex As Integer
    Dim value As SearchFoundFlags
     
    value = instance.Search(searchString, searchFlags, searchOrder, searchTarget, foundRowIndex, foundColumnIndex)

    Parameters

    searchString
    The string for which to search.
    searchFlags
    The SearchFlags enumeration that specifies the search options.
    searchOrder
    The SearchOrder enumeration that specifies whether the search goes by column, row coordinates or row, column coordinates.
    searchTarget
    The SearchFoundFlags enumeration that indicates whether the search includes the content in the cell notes, tags, or text.
    foundRowIndex
    The row index at which the match is found.
    foundColumnIndex
    The column index at which the match is found.

    Return Value

    A SearchFoundFlags enumeration that specifies what is matched.
    See Also