更新 : 2007 年 11 月
現在の ISearch を中断し、エディタをその基本動作に戻します。
名前空間 : EnvDTE80
アセンブリ : EnvDTE80 (EnvDTE80.dll 内)
構文
'宣言
Sub Exit
'使用
Dim instance As IncrementalSearch
instance.Exit()
void Exit()
void Exit()
function Exit()
解説
Exit は、ISearch パターンを削除したり、エディタの現在の選択範囲を移動したりしません。
例
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
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。