ITextSearchService2 接口

定义

提供用于搜索的内容的方法 ITextSnapshot 。 此外,还提供了用于执行替换操作的帮助器方法。

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
实现

注解

这是一个 MEF 组件部件,应如下所示导入: [Import] ITextSearchService2 textSearch = null;

方法

Find(SnapshotPoint, String, FindOptions)

搜索搜索字符串的下一个匹配项。

Find(SnapshotSpan, SnapshotPoint, String, FindOptions)

搜索搜索字符串的下一个匹配项。

FindAll(FindData)

搜索搜索字符串的所有匹配项。

(继承自 ITextSearchService)
FindAll(SnapshotSpan, SnapshotPoint, String, FindOptions)

从开始查找中的所有匹配项 searchPattern searchRange startingPosition

FindAll(SnapshotSpan, String, FindOptions)

查找中的所有匹配 searchPatternsearchRange

FindAllForReplace(SnapshotSpan, String, String, FindOptions)

搜索的所有匹配项 searchPattern ,并根据提供的每个匹配项计算所有对应的替换结果 replacePattern

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

搜索下一个匹配项 searchPattern 并将其设置 expandedReplacePattern 为文本替换的结果。

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

搜索下一个匹配项 searchPattern 并将其设置 expandedReplacePattern 为文本替换的结果。

FindNext(Int32, Boolean, FindData)

搜索搜索字符串的下一个匹配项。

(继承自 ITextSearchService)

适用于