다음을 통해 공유


IVsTextBufferEvents Interface

Definition

Notifies clients when a new language service is associated with a text buffer.

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(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsTextBufferEvents
[<System.Runtime.InteropServices.Guid("44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsTextBufferEvents = interface
[<System.Runtime.InteropServices.Guid("44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsTextBufferEvents = interface
Public Interface IVsTextBufferEvents
Attributes

Remarks

Implement this interface on your client object to receive notification when the text buffer's language service has changed. Expose this interface to the text buffer using the IConnectionPointContainer interface on the text buffer object, VsTextBuffer.

IVsTextBuffer fires IVsTextBufferEvents when there is a change in the language service. Then, the system notifies you of the switch to a different language service by calling your OnNewLanguageService implementation.

Notes to Implementers

Implement this interface on your client object to receive notification when the text buffer's language service has changed.

Methods

OnNewLanguageService(Guid)

Notifies the client when a new language service is associated with a buffer.

Applies to