ITextBufferContentTypeListener Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows extensions to track content type changes in ITextBuffers.
public interface class ITextBufferContentTypeListener
public interface ITextBufferContentTypeListener
type ITextBufferContentTypeListener = interface
Public Interface ITextBufferContentTypeListener
Remarks
This is a MEF component part, and should be exported with the following attributes:
[Export(typeof(ITextBufferContentTypeListener))]
[Name("...")] // Required, must have exactly one.
[ContentType("...")] // Required, can have one or more
[Order(Before ="...", After = "...")] // Optional, can have zero or more
Methods
ContentTypeChanged(ITextBuffer, IContentType, IContentType) |
Called when any ITextBuffer's ContentType is changed to or from one of the content types listed in the MEF attributes of this export. |