ITextSearchService2 Interface

Definition

Provides methods for searching contents of a ITextSnapshot. Additionally, provides helper methods for performing replace operations.

public interface class ITextSearchService2 : Microsoft::VisualStudio::Text::Operations::ITextSearchService
public interface class ITextSearchService2 : Microsoft::VisualStudio::Text::Operations::ITextSearchService
__interface ITextSearchService2 : Microsoft::VisualStudio::Text::Operations::ITextSearchService
public interface ITextSearchService2 : Microsoft.VisualStudio.Text.Operations.ITextSearchService
type ITextSearchService2 = interface
    interface ITextSearchService
Public Interface ITextSearchService2
Implements ITextSearchService
Implements

Remarks

This is a MEF component part, and should be imported as follows: [Import] ITextSearchService2 textSearch = null;

Methods

Find(SnapshotPoint, String, FindOptions)

Searches for the next occurrence of the search string.

Find(SnapshotSpan, SnapshotPoint, String, FindOptions)

Searches for the next occurrence of the search string.

FindAll(FindData)

Searches for all the occurrences of the search string.

(Inherited from ITextSearchService)
FindAll(SnapshotSpan, SnapshotPoint, String, FindOptions)

Finds all occurrences of the searchPattern in searchRange starting from startingPosition.

FindAll(SnapshotSpan, String, FindOptions)

Finds all occurrences of the searchPattern in searchRange.

FindAllForReplace(SnapshotSpan, String, String, FindOptions)

Searches for all occurrences of the searchPattern and calculates all the corresponding replacement results for every match according to the replacePattern.

FindForReplace(SnapshotPoint, String, String, FindOptions, String)

Searches for the next occurrence of searchPattern and sets expandedReplacePattern to the result of the text replacement.

FindForReplace(SnapshotSpan, String, String, FindOptions, String)

Searches for the next occurrence of searchPattern and sets expandedReplacePattern to the result of the text replacement.

FindNext(Int32, Boolean, FindData)

Searches for the next occurrence of the search string.

(Inherited from ITextSearchService)

Applies to