Compartilhar via


ITextSearchNavigator Interface

Definition

Provides a service to navigate between search results on a ITextBuffer and to perform replacements.

public interface class ITextSearchNavigator
public interface class ITextSearchNavigator
__interface ITextSearchNavigator
public interface ITextSearchNavigator
type ITextSearchNavigator = interface
Public Interface ITextSearchNavigator

Remarks

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

Properties

CurrentResult

Returns the SnapshotSpan corresponding to the result of the last find operation. If no matches were found or if no search has been performed yet, null is returned.

ReplaceTerm

The term to replace matches with.

SearchOptions

Sets or gets options used for the search.

SearchSpan

Indicates the range that should be searched (if any).

SearchTerm

The term to search for.

StartPoint

Indicates the position in CurrentSnapshot at which the search should be started.

Methods

ClearCurrentResult()

Clears the current result.

Find()

Finds the next occurrence of the text matching the SearchTerm.

Replace()

Replaces the current result with ReplaceTerm.

Applies to