ITextViewConnectionListener 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.
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. |