Compartir a través de


ITextSearchService.FindNext(Int32, Boolean, FindData) Method

Definition

Searches for the next occurrence of the search string.

public:
 Nullable<Microsoft::VisualStudio::Text::SnapshotSpan> FindNext(int startIndex, bool wraparound, Microsoft::VisualStudio::Text::Operations::FindData findData);
public Microsoft.VisualStudio.Text.SnapshotSpan? FindNext (int startIndex, bool wraparound, Microsoft.VisualStudio.Text.Operations.FindData findData);
abstract member FindNext : int * bool * Microsoft.VisualStudio.Text.Operations.FindData -> Nullable<Microsoft.VisualStudio.Text.SnapshotSpan>
Public Function FindNext (startIndex As Integer, wraparound As Boolean, findData As FindData) As Nullable(Of SnapshotSpan)

Parameters

startIndex
Int32

The index from which to begin the search.

wraparound
Boolean

Determines whether the search wraps to the beginning of the buffer when it reaches the end of the buffer.

findData
FindData

The data to use for this search.

Returns

The SnapshotSpan containing the match if a match was found, or null if no matches were found.

Exceptions

startIndex is less than zero or greater than the length of the data.

The UseRegularExpressions flag is set and the search string is an invalid regular expression.

findData is null.

Applies to