다음을 통해 공유


ITextSearchService.FindNext 메서드

검색 문자열의 다음 일치 항목을 검색합니다.

네임스페이스:  Microsoft.VisualStudio.Text.Operations
어셈블리:  Microsoft.VisualStudio.Text.Logic(Microsoft.VisualStudio.Text.Logic.dll)

구문

‘선언
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>

매개 변수

  • startIndex
    형식: Int32

    검색을 시작할 인덱스입니다.

  • wraparound
    형식: Boolean

    검색할 때 버퍼 끝에 도달하면 버퍼 처음으로 래핑할지 여부를 확인합니다.

반환 값

형식: Nullable<SnapshotSpan>
SnapshotSpan 일치 하는 항목이 있으면 해당 항목이 포함 된 또는 nullNull 참조(Visual Basic의 경우 Nothing) 없음 일치 하는 항목이 발견 되는 경우.

예외

예외 조건
ArgumentNullException

findData가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

ArgumentOutOfRangeException

startIndex0 보다 작거나 데이터의 길이입니다.

ArgumentException

UseRegularExpressions 플래그가 설정 되 고 잘못 된 정규식 검색 문자열입니다.

.NET Framework 보안

참고 항목

참조

ITextSearchService 인터페이스

Microsoft.VisualStudio.Text.Operations 네임스페이스