'Declaration Public Overloads Function Search( _ ByVal searchString As System.String, _ ByVal searchFlags As SearchFlags, _ ByVal searchOrder As SearchOrder, _ ByVal searchTarget As SearchFoundFlags, _ ByVal sheetArea As SheetArea, _ ByVal rowStart As System.Integer, _ ByVal columnStart As System.Integer, _ ByVal rowEnd As System.Integer, _ ByVal columnEnd As System.Integer, _ ByRef foundRowIndex As System.Integer, _ ByRef foundColumnIndex As System.Integer _ ) As SearchFoundFlags
'Usage Dim instance As Worksheet Dim searchString As System.String Dim searchFlags As SearchFlags Dim searchOrder As SearchOrder Dim searchTarget As SearchFoundFlags Dim sheetArea As SheetArea Dim rowStart As System.Integer Dim columnStart As System.Integer Dim rowEnd As System.Integer Dim columnEnd As System.Integer Dim foundRowIndex As System.Integer Dim foundColumnIndex As System.Integer Dim value As SearchFoundFlags value = instance.Search(searchString, searchFlags, searchOrder, searchTarget, sheetArea, rowStart, columnStart, rowEnd, columnEnd, foundRowIndex, foundColumnIndex)
public SearchFoundFlags Search( System.string searchString, SearchFlags searchFlags, SearchOrder searchOrder, SearchFoundFlags searchTarget, SheetArea sheetArea, System.int rowStart, System.int columnStart, System.int rowEnd, System.int columnEnd, out System.int foundRowIndex, out System.int foundColumnIndex )
Parameters
- searchString
- The string for which to search.
- searchFlags
- The SearchFlags enumeration that specifies the options of the search.
- searchOrder
- The SearchOrder enumeration that specifies whether the search goes by column then row coordinates or row then column coordinates.
- searchTarget
- The SearchFoundFlags enumeration that indicates whether the search includes the content in the cell notes, tags, or text.
- sheetArea
- The sheet area to search.
- rowStart
- The row index at which to start.
- columnStart
- The column index at which to start.
- rowEnd
- The row index at which to end.
- columnEnd
- The column index at which to end.
- foundRowIndex
- The row index at which a match is found.
- foundColumnIndex
- The column index at which a match is found.
Return Value
A SearchFoundFlags enumeration that specifies what is matched.