Export (0) Print
Expand All

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()]
[GuidAttribute("44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")]
public interface IVsTextBufferEvents

The IVsTextBufferEvents type exposes the following members.

  NameDescription
Public methodOnNewLanguageServiceNotifies the client when a new language service is associated with a buffer.
Top

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.

Show:
© 2014 Microsoft