ITextBufferContentTypeListener Interface

Definition

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.

Applies to