IncrementalSearch.Exit, méthode

Arrête la recherche ISearch actuelle et retourne l'éditeur à son comportement de base.

Espace de noms :  EnvDTE80
Assembly :  EnvDTE80 (dans EnvDTE80.dll)

Syntaxe

'Déclaration
Sub Exit
void Exit()
void Exit()
abstract Exit : unit -> unit 
function Exit()

Notes

Exit n'efface pas le modèle ISearch et ne déplace pas la sélection actuelle dans l'éditeur.

Exemples

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

Sécurité .NET Framework

Voir aussi

Référence

IncrementalSearch Interface

EnvDTE80, espace de noms

Autres ressources

How to: Automate an Incremental Search

Comment : rechercher dans un document par incrément