次の方法で共有


IncrementalSearch インターフェイス

更新 : 2007 年 11 月

テキスト エディタのインクリメント検索 (ISearch) 機能にアクセスできます。

名前空間 :  EnvDTE80
アセンブリ :  EnvDTE80 (EnvDTE80.dll 内)

構文

'宣言
<GuidAttribute("C5BEE6D8-ED45-4317-96BF-97EB88EA3A07")> _
Public Interface IncrementalSearch
'使用
Dim instance As IncrementalSearch
[GuidAttribute("C5BEE6D8-ED45-4317-96BF-97EB88EA3A07")]
public interface IncrementalSearch
[GuidAttribute(L"C5BEE6D8-ED45-4317-96BF-97EB88EA3A07")]
public interface class IncrementalSearch
public interface IncrementalSearch

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

参照

参照

IncrementalSearch メンバ

EnvDTE80 名前空間

その他の技術情報

方法 : インクリメンタル検索を自動化する

方法 : ドキュメントのインクリメンタル検索を実行する