ITextSearchService::FindNext Method (Int32, Boolean, FindData)
Visual Studio 2015
Searches for the next occurrence of the search string.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Parameters
- startIndex
-
Type:
System::Int32
The index from which to begin the search.
- wraparound
-
Type:
System::Boolean
Determines whether the search wraps to the beginning of the buffer when it reaches the end of the buffer.
- findData
-
Type:
Microsoft.VisualStudio.Text.Operations::FindData
The data to use for this search.
Return Value
Type: System::Nullable<SnapshotSpan>The SnapshotSpan containing the match if a match was found, or null if no matches were found.
| Exception | Condition |
|---|---|
| ArgumentNullException | findData is null. |
| ArgumentOutOfRangeException | startIndex is less than zero or greater than the length of the data. |
| ArgumentException | The UseRegularExpressions flag is set and the search string is an invalid regular expression. |
Show: