ITextViewConnectionListener Interface

Definition

Listens to text buffers of a particular content type to find out when they are opened or closed in the text editor.

public interface class ITextViewConnectionListener
public interface ITextViewConnectionListener
type ITextViewConnectionListener = interface
Public Interface ITextViewConnectionListener

Remarks

This is a MEF component part, and should be exported with the following attribute: [Export(typeof(ITextViewConnectionListener))] [ContentType("...")] [TextViewRole("...")]

Methods

SubjectBuffersConnected(ITextView, ConnectionReason, IReadOnlyCollection<ITextBuffer>)

Called when one or more ITextBuffer objects of the appropriate IContentType are connected to a ITextView.

SubjectBuffersDisconnected(ITextView, ConnectionReason, IReadOnlyCollection<ITextBuffer>)

Called when one or more ITextBuffer objects no longer satisfy the conditions for being included in the subject buffers.

Applies to