ITextSearchService2 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用于搜索的内容的方法 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) |
从开始查找中的所有匹配项 |
| FindAll(SnapshotSpan, String, FindOptions) |
查找中的所有匹配 |
| FindAllForReplace(SnapshotSpan, String, String, FindOptions) |
搜索的所有匹配项 |
| FindForReplace(SnapshotPoint, String, String, FindOptions, String) |
搜索下一个匹配项 |
| FindForReplace(SnapshotSpan, String, String, FindOptions, String) |
搜索下一个匹配项 |
| FindNext(Int32, Boolean, FindData) |
搜索搜索字符串的下一个匹配项。 (继承自 ITextSearchService) |