Sdílet prostřednictvím


IncrementalSearch.StartForward – metoda

Spustí hledání dopředu.

Obor názvů:  EnvDTE80
Sestavení:  EnvDTE80 (v EnvDTE80.dll)

Syntaxe

'Deklarace
Sub StartForward
void StartForward()
void StartForward()
abstract StartForward : unit -> unit
function StartForward()

Poznámky

Začíná přírůstkového hledání, hledání na konec dokumentu, balení, pokud je to nezbytné.

Příklady

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

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

IncrementalSearch Rozhraní

EnvDTE80 – obor názvů

Další zdroje

How to: Search for Text Incrementally

How to: Search a Document Incrementally