This documentation is archived and is not being maintained.

ITextSearchService Interface

Searches a ITextSnapshot with different search options.

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

public interface ITextSearchService

The ITextSearchService type exposes the following members.

Public methodFindAllSearches for all the occurrences of the search string.
Public methodFindNextSearches for the next occurrence of the search string.

This is a MEF component part, and should be imported as follows:

[Import] ITextSearchService textSearch = null;