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

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.

Community Additions

ADD
Show:
© 2014 Microsoft