IVsFinder 接口

定义

查找文本图像。

public interface class IVsFinder
public interface class IVsFinder
__interface IVsFinder
[System.Runtime.InteropServices.Guid("D0C79C30-C06A-11D2-936C-D714766E8B50")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsFinder
[<System.Runtime.InteropServices.Guid("D0C79C30-C06A-11D2-936C-D714766E8B50")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsFinder = interface
Public Interface IVsFinder
派生
属性

注解

获取文本图像:

  • QueryInterface 的 shell 文本缓冲区 IVsTextImage

  • 使用通过 TxFactory 提供的文本图像实现。

使用查找器搜索图像:

  • AttachTextImage 要搜索的图像。

  • 用搜索模式和选项初始化。

  • SetScope (可选) ,以将搜索范围限制为图像的子集。 这可能是图像的一些非连续区域。

  • SetPosition 设置开始和/或当前位置以及已包装的搜索状态。

  • Find.

查找器不了解隐藏文本 (FR_Hidden) 。 仅搜索非隐藏文本必须通过设置可见区域的范围集来实现。 "Try match" 表示在不扫描的情况下在指定位置测试匹配项。 若要在找到后获取匹配集或 regex 标记集,您必须通过 VSFH_SetMatch 。 如果不需要匹配集或标记集,则更有效的方法是不通过 VSFH_SetMatch

实施者说明

由环境实现。 通过环境的全局服务提供程序提供的实例。

方法

AttachTextImage(Object)

附加文本图像。

Detach()

分离文本图像。

Find(UInt32, TextSpan[], UInt32)

在文本范围内查找文本图像。

GetMatch(TextSpan[])

获取 textspan 匹配项。

GetMatchedSpans(IVsTextSpanSet)

获取匹配的 textspans。

GetState(Int32, UInt32, UInt32)

获取状态。

GetTaggedSpans(IVsTextSpanSet)

返回标记的 textspans。

Init(UInt32, String, Int32, UInt32)

设置查找字符串。

SetPosition(UInt32, TextAddress)

设置搜索位置

SetScope(IVsTextSpanSet)

将搜索限制为范围集。

适用于