IVsTextBufferEvents 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当新语言服务与文本缓冲区关联时,通知客户端。
public interface class IVsTextBufferEvents
public interface class IVsTextBufferEvents
__interface IVsTextBufferEvents
[System.Runtime.InteropServices.Guid("44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsTextBufferEvents
[<System.Runtime.InteropServices.Guid("44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsTextBufferEvents = interface
Public Interface IVsTextBufferEvents
- 属性
注解
在客户端对象上实现此接口,以在文本缓冲区的语言服务发生更改时接收通知。 使用 IConnectionPointContainer 文本缓冲区对象上的接口将此接口公开给文本缓冲区 VsTextBuffer 。
IVsTextBuffer 在 IVsTextBufferEvents 语言服务发生更改时激发。 然后,系统会调用实现,通知您切换到不同的语言服务 OnNewLanguageService 。
实施者说明
在客户端对象上实现此接口,以在文本缓冲区的语言服务发生更改时接收通知。
方法
| OnNewLanguageService(Guid) |
向客户端通知与缓冲区关联的新的语言服务。 |