ITextSearchService2 Interface

 

Extends ITextSearchService with methods for searching contents of a ITextSnapshot and helper methods for performing replace operations.

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

public interface ITextSearchService2 : ITextSearchService

NameDescription
System_CAPS_pubmethodFind(SnapshotPoint, String, FindOptions)

Searches for the next occurrence of the given search pattern, using the given starting position and options.

System_CAPS_pubmethodFind(SnapshotSpan, SnapshotPoint, String, FindOptions)

Searches for the next occurrence of the given search pattern, using the given search range, starting position and options.

System_CAPS_pubmethodFindAll(FindData)

Searches for all the occurrences of the search string.(Inherited from ITextSearchService.)

System_CAPS_pubmethodFindAll(SnapshotSpan, SnapshotPoint, String, FindOptions)

Searches for all occurrences of the given search pattern, using the given search range, starting position and options.

System_CAPS_pubmethodFindAll(SnapshotSpan, String, FindOptions)

Searches for all occurrences of the given search pattern, using the given starting range and options.

System_CAPS_pubmethodFindAllForReplace(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.

System_CAPS_pubmethodFindForReplace(SnapshotPoint, String, String, FindOptions, String)

Searches for the next occurrence of the search pattern and returns the result of replacing the search pattern with the replacement pattern.

System_CAPS_pubmethodFindForReplace(SnapshotSpan, String, String, FindOptions, String)

Searches for the next occurrence of the search pattern and returns the result of replacing the search pattern with the replacement pattern.

System_CAPS_pubmethodFindNext(Int32, Boolean, FindData)

Searches for the next occurrence of the search string.(Inherited from ITextSearchService.)

This interface is provided by the editor and should be consumed via the Managed Extensibility Framework (MEF).

Return to top
Show: