Export (0) Print
Expand All

ITextSearchNavigator Interface

Navigates between search results on an ITextBuffer and performs text replacements.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

public interface ITextSearchNavigator

The ITextSearchNavigator type exposes the following members.

  NameDescription
Public propertyCurrentResultGets the SnapshotSpan corresponding to the result of the last find operation.
Public propertyReplaceTermGets or sets the term to use to replace matches.
Public propertySearchOptionsGets or sets options to use for a search.
Public propertySearchSpanGets or sets the range of text to search.
Public propertySearchTermGets or sets the term to search for.
Public propertyStartPointGets or sets the position at which the search is started.
Top

  NameDescription
Public methodClearCurrentResultClears the current result.
Public methodFindFinds the next occurrence of the text matching the SearchTerm.
Public methodReplaceReplaces the current result with the ReplaceTerm.
Top

This interface is a Managed Extensibility Framework (MEF) part, you can get it by importing an ITextSearchNavigatorFactoryService and calling the CreateSearchNavigator method.

Show:
© 2015 Microsoft