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)

Syntax

声明
Public Interface ITextSearchService2 _
    Inherits ITextSearchService
public interface ITextSearchService2 : ITextSearchService
public interface class ITextSearchService2 : ITextSearchService
type ITextSearchService2 =  
    interface
        interface ITextSearchService
    end
public interface ITextSearchService2 extends ITextSearchService

The ITextSearchService2 type exposes the following members.

Methods

  Name Description
Public method Find(SnapshotPoint, String, FindOptions) Searches for the next occurrence of the given search pattern, using the given starting position and options.
Public method Find(SnapshotSpan, SnapshotPoint, String, FindOptions) Searches for the next occurrence of the given search pattern, using the given search range, starting position and options.
Public method FindAll(FindData) Searches for all the occurrences of the search string. (Inherited from ITextSearchService.)
Public method FindAll(SnapshotSpan, String, FindOptions) Searches for all occurrences of the given search pattern, using the given starting range and options.
Public method FindAll(SnapshotSpan, SnapshotPoint, String, FindOptions) Searches for all occurrences of the given search pattern, using the given search range, starting position and options.
Public method FindAllForReplace Searches for all occurrences of the search pattern and calculates all the corresponding replacement results for every match according to the specified replacement pattern.
Public method FindForReplace(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.
Public method FindForReplace(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.
Public method FindNext Searches for the next occurrence of the search string. (Inherited from ITextSearchService.)

Top

Remarks

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

See Also

Reference

Microsoft.VisualStudio.Text.Operations Namespace