ITextSearchService.FindNext Method
Searches for the next occurrence of the search string.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
‘선언
Function FindNext ( _
startIndex As Integer, _
wraparound As Boolean, _
findData As FindData _
) As Nullable(Of SnapshotSpan)
Nullable<SnapshotSpan> FindNext(
int startIndex,
bool wraparound,
FindData findData
)
Nullable<SnapshotSpan> FindNext(
int startIndex,
bool wraparound,
FindData findData
)
abstract FindNext :
startIndex:int *
wraparound:bool *
findData:FindData -> Nullable<SnapshotSpan>
function FindNext(
startIndex : int,
wraparound : boolean,
findData : FindData
) : Nullable<SnapshotSpan>
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 nulla null reference (Nothing in Visual Basic) if no matches were found.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | findData is nulla null reference (Nothing in Visual Basic). |
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. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.