显示由文本缓冲区和使用的专用接口快速地提供,面向流,对文本进行顺序访问缓冲区。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
<InterfaceTypeAttribute()> _
<GuidAttribute("EBD73923-C190-45C1-91C5-0BC61A8AAB14")> _
Public Interface IVsTextScanner
[InterfaceTypeAttribute()]
[GuidAttribute("EBD73923-C190-45C1-91C5-0BC61A8AAB14")]
public interface IVsTextScanner
[InterfaceTypeAttribute()]
[GuidAttribute(L"EBD73923-C190-45C1-91C5-0BC61A8AAB14")]
public interface class IVsTextScanner
[<InterfaceTypeAttribute()>]
[<GuidAttribute("EBD73923-C190-45C1-91C5-0BC61A8AAB14")>]
type IVsTextScanner = interface end
public interface IVsTextScanner
IVsTextScanner 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
CloseScan | 关闭浏览的缓冲区并重新启用写入缓冲区。 |
![]() |
OpenScan | 打开浏览的文本缓冲区。 |
![]() |
Read | 执行文本缓冲区的字符串长度定义的文本缓冲区的扫描或部分, piLength。 |
页首
备注
IVsTextScanner 特别有用于编译器,在文本缓冲区需要对文本的快速,串行,面向流的访问。 但是,此接口锁定缓冲区和执行垃圾回收通过,导致较贵的性能造成影响。 此接口的因此使用方案中不建议使用例如对处理程序或其他性能敏感的方案中的查询状态。
此接口允许您从文本缓冲区中的选定文本。 如果需要对文本缓冲区的完整目录的访问,使用 IVsFullTextScanner,请考虑。
对实现者的说明
实现 IVsTextScanner 获取快速访问到文本缓冲区。