ITextBufferContentTypeListener.ContentTypeChanged 方法

定义

当任何 ITextBufferContentType 更改为或从此导出的 MEF 属性中列出的内容类型之一时调用。

public:
 void ContentTypeChanged(Microsoft::VisualStudio::Text::ITextBuffer ^ buffer, Microsoft::VisualStudio::Utilities::IContentType ^ oldContentType, Microsoft::VisualStudio::Utilities::IContentType ^ newContentType);
public void ContentTypeChanged (Microsoft.VisualStudio.Text.ITextBuffer buffer, Microsoft.VisualStudio.Utilities.IContentType oldContentType, Microsoft.VisualStudio.Utilities.IContentType newContentType);
abstract member ContentTypeChanged : Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Utilities.IContentType * Microsoft.VisualStudio.Utilities.IContentType -> unit
Public Sub ContentTypeChanged (buffer As ITextBuffer, oldContentType As IContentType, newContentType As IContentType)

参数

buffer
ITextBuffer
oldContentType
IContentType
newContentType
IContentType

注解

可以在任何线程上引发此事件。

适用于