In This Topic
Finds instances of text in a string.
Syntax
'Declaration
Public Shared Function FindTextInstances( _
ByVal As String, _
ByVal As String, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean _
) As IList(Of Integer)
public static IList<int> FindTextInstances(
string ,
string ,
int ,
int ,
int ,
bool ,
bool ,
bool
)
Parameters
- what
- The text to search for.
- where
- The string to search.
- fromIdx
- Index in "where" to start search at.
- length
- Length of substring to search in.
- maxCount
- Max number of instances to find.
- forward
- Search direction.
- matchCase
- Ignore case.
- word
- Whole word search.
Return Value
Array of indexes into "where" to the found instances.
See Also