Freigeben über


ITextViewConnectionListener.SubjectBuffersConnected Method

Definition

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

public:
 void SubjectBuffersConnected(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::Editor::ConnectionReason reason, System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Text::ITextBuffer ^> ^ subjectBuffers);
public void SubjectBuffersConnected (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.Editor.ConnectionReason reason, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Text.ITextBuffer> subjectBuffers);
abstract member SubjectBuffersConnected : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.Editor.ConnectionReason * System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Text.ITextBuffer> -> unit
Public Sub SubjectBuffersConnected (textView As ITextView, reason As ConnectionReason, subjectBuffers As IReadOnlyCollection(Of ITextBuffer))

Parameters

textView
ITextView

The ITextView to which the subject buffers are being connected.

reason
ConnectionReason

The cause of the connection.

subjectBuffers
IReadOnlyCollection<ITextBuffer>

The non-empty list of ITextBuffer objects with matching content types.

Remarks

A connection can occur at one of three times: (1) when the view is first created; (2) when the buffer becomes a member of the IBufferGraph for the view; or (3) when the IContentType of the buffer changes.

Applies to