IVsTextBufferEvents 接口

定义

当新语言服务与文本缓冲区关联时,通知客户端。

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

IVsTextBufferIVsTextBufferEvents 语言服务发生更改时激发。 然后,系统会调用实现,通知您切换到不同的语言服务 OnNewLanguageService

实施者说明

在客户端对象上实现此接口,以在文本缓冲区的语言服务发生更改时接收通知。

方法

OnNewLanguageService(Guid)

向客户端通知与缓冲区关联的新的语言服务。

适用于