다음을 통해 공유


IncrementalSearch 인터페이스

텍스트 편집기의 ISearch(증분 검색) 기능에 대한 액세스를 제공합니다.

네임스페이스:  EnvDTE80
어셈블리:  EnvDTE80(EnvDTE80.dll)

구문

‘선언
<GuidAttribute("C5BEE6D8-ED45-4317-96BF-97EB88EA3A07")> _
Public Interface IncrementalSearch
[GuidAttribute("C5BEE6D8-ED45-4317-96BF-97EB88EA3A07")]
public interface IncrementalSearch
[GuidAttribute(L"C5BEE6D8-ED45-4317-96BF-97EB88EA3A07")]
public interface class IncrementalSearch
[<GuidAttribute("C5BEE6D8-ED45-4317-96BF-97EB88EA3A07")>]
type IncrementalSearch =  interface end
public interface IncrementalSearch

IncrementalSearch 형식에서는 다음과 같은 멤버를 노출합니다.

속성

  이름 설명
Public 속성 DTE 최상위 확장성 개체를 가져옵니다.
Public 속성 IncrementalSearchModeOn ISearch가 수행 중인지 여부를 나타내는 값을 가져옵니다.
Public 속성 Pattern 현재 ISearch에서 처리하고 있는 문자를 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 AppendCharAndSearch ISearch 패턴에 문자를 추가하고 새 문자열을 검색합니다.
Public 메서드 DeleteCharAndBackup 검색 패턴에서 문자 하나를 제거하고 이전 일치 항목으로 선택 영역을 되돌립니다.
Public 메서드 Exit 현재 ISearch를 중지하고 편집기의 기본 동작으로 되돌아갑니다.
Public 메서드 SearchBackward 현재 위치에서 문서의 시작 부분까지 현재 패턴을 검색합니다.
Public 메서드 SearchForward 현재 위치에서 문서의 끝까지 현재 패턴을 검색합니다.
Public 메서드 SearchWithLastPattern 패턴을 변경하지 않고 현재 ISearch를 반복합니다.
Public 메서드 StartBackward 뒤로 검색을 시작합니다.
Public 메서드 StartForward 앞으로 검색을 시작합니다.

위쪽

예제

Sub testIS()
    ' Set variables for text pane.
    Dim tp As EnvDTE80.TextPane2
    tp = CType(DTE.ActiveDocument.ActiveWindow.Object.ActivePane, _
    TextPane2)
    ' Start an incremental search forward from
    ' the current insertion point in the document.
    tp.IncrementalSearch.StartForward()
    ' Add the character "a" to the search pattern.
    tp.IncrementalSearch.AppendCharAndSearch(Asc("a"))
    ' Perform incremental search using the pattern ("a").
    tp.IncrementalSearch.SearchWithLastPattern()
    ' After the search, exit incremental search mode.
    tp.IncrementalSearch.Exit()
End Sub

참고 항목

참조

EnvDTE80 네임스페이스

기타 리소스

How to: Search for Text Incrementally

How to: Search a Document Incrementally