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

NameDescription
System_CAPS_pubpropertyCurrentResult

Gets the SnapshotSpan corresponding to the result of the last find operation.

System_CAPS_pubpropertyReplaceTerm

Gets or sets the term to use to replace matches.

System_CAPS_pubpropertySearchOptions

Gets or sets options to use for a search.

System_CAPS_pubpropertySearchSpan

Gets or sets the range of text to search.

System_CAPS_pubpropertySearchTerm

Gets or sets the term to search for.

System_CAPS_pubpropertyStartPoint

Gets or sets the position at which the search is started.

NameDescription
System_CAPS_pubmethodClearCurrentResult()

Clears the current result.

System_CAPS_pubmethodFind()

Finds the next occurrence of the text matching the SearchTerm.

System_CAPS_pubmethodReplace()

Replaces the current result with the ReplaceTerm.

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

Return to top
Show: