IVsTextBufferEvents Interface

 

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

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

[InterfaceTypeAttribute(1)]
[GuidAttribute("44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")]
public interface IVsTextBufferEvents

NameDescription
System_CAPS_pubmethodOnNewLanguageService(Guid)

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

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.

Return to top
Show: