IncrementalSearch.StartForward, méthode

Démarre une recherche vers l'avant.

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

Syntaxe

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

Notes

Commence une recherche incrémentielle, vers la fin du document, avec renvoi du texte si nécessaire.

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