更新 : 2007 年 11 月
ISearch が実行されているかどうかを示す値を取得します。
名前空間 : EnvDTE80
アセンブリ : EnvDTE80 (EnvDTE80.dll 内)
構文
'宣言
ReadOnly Property IncrementalSearchModeOn As Boolean
'使用
Dim instance As IncrementalSearch
Dim value As Boolean
value = instance.IncrementalSearchModeOn
bool IncrementalSearchModeOn { get; }
property bool IncrementalSearchModeOn {
bool get ();
}
function get IncrementalSearchModeOn () : boolean
プロパティ値
型 : System.Boolean
ISearch が開始されていて終了されていない場合は true。それ以外の場合は false。
例
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"))
' Display the status of the search mode.
'MsgBox("ISearch status: " & _
tp.IncrementalSearch.IncrementalSearchModeOn.ToString)
' Perform incremental search using the pattern ("a").
tp.IncrementalSearch.SearchWithLastPattern()
' After the search, exit incremental search mode.
tp.IncrementalSearch.Exit()
End Sub
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。