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)
Syntax
'Déclaration
<InterfaceTypeAttribute()> _
<GuidAttribute("44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")> _
Public Interface IVsTextBufferEvents
[InterfaceTypeAttribute()]
[GuidAttribute("44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")]
public interface IVsTextBufferEvents
[InterfaceTypeAttribute()]
[GuidAttribute(L"44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")]
public interface class IVsTextBufferEvents
[<InterfaceTypeAttribute()>]
[<GuidAttribute("44B0CAB3-6DF8-4931-9064-8FD18AFBC88E")>]
type IVsTextBufferEvents = interface end
public interface IVsTextBufferEvents
The IVsTextBufferEvents type exposes the following members.
Methods
Name | Description | |
---|---|---|
OnNewLanguageService | Notifies the client when a new language service is associated with a buffer. |
Top
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.