Compartir a través de


IncrementalSearch.StartForward (Método)

Inicia una búsqueda hacia delante.

Espacio de nombres:  EnvDTE80
Ensamblado:  EnvDTE80 (en EnvDTE80.dll)

Sintaxis

'Declaración
Sub StartForward
void StartForward()
void StartForward()
abstract StartForward : unit -> unit 
function StartForward()

Comentarios

Inicia una búsqueda incremental hacia el final del documento, volviendo al principio si es necesario.

Ejemplos

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

Seguridad de .NET Framework

Vea también

Referencia

IncrementalSearch Interfaz

EnvDTE80 (Espacio de nombres)

Otros recursos

How to: Search for Text Incrementally

How to: Search a Document Incrementally