共用方式為


IVsTextBufferEvents 介面

新的語言服務相關聯的文字緩衝區時,請告知用戶端。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
<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

IVsTextBufferEvents 類型會公開下列成員。

方法

  名稱 描述
公用方法 OnNewLanguageService 新的語言服務相關聯的緩衝區時,請告知用戶端。

回頁首

備註

在文字緩衝區的語言服務都有變更時接收通知的用戶端物件上實作這個介面。 這個介面來使用您建立文字緩衝區公開 (expose) IConnectionPointContainer文字緩衝區物件上的介面VsTextBuffer

IVsTextBuffer引發IVsTextBufferEvents語言服務中的變更時。 然後,系統呼叫告知您切換至不同的語言服務您OnNewLanguageService實作。

實作者注意事項

在文字緩衝區的語言服務都有變更時接收通知的用戶端物件上實作這個介面。

請參閱

參考

Microsoft.VisualStudio.TextManager.Interop 命名空間