Udostępnij za pośrednictwem


IWpfTextViewConnectionListener.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::IWpfTextView ^ textView, Microsoft::VisualStudio::Text::Editor::ConnectionReason reason, System::Collections::ObjectModel::Collection<Microsoft::VisualStudio::Text::ITextBuffer ^> ^ subjectBuffers);
public void SubjectBuffersConnected (Microsoft.VisualStudio.Text.Editor.IWpfTextView textView, Microsoft.VisualStudio.Text.Editor.ConnectionReason reason, System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Text.ITextBuffer> subjectBuffers);
abstract member SubjectBuffersConnected : Microsoft.VisualStudio.Text.Editor.IWpfTextView * Microsoft.VisualStudio.Text.Editor.ConnectionReason * System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Text.ITextBuffer> -> unit
Public Sub SubjectBuffersConnected (textView As IWpfTextView, reason As ConnectionReason, subjectBuffers As Collection(Of ITextBuffer))

Parameters

textView
IWpfTextView

The IWpfTextView to which the subject buffers are being connected.

reason
ConnectionReason

The cause of the connection.

subjectBuffers
Collection<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