IWpfTextViewConnectionListener::SubjectBuffersConnected Method (IWpfTextView^, ConnectionReason, Collection<ITextBuffer^>^)

 

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

Namespace:   Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

void SubjectBuffersConnected(
	IWpfTextView^ textView,
	ConnectionReason reason,
	Collection<ITextBuffer^>^ subjectBuffers
)

Parameters

textView
Type: Microsoft.VisualStudio.Text.Editor::IWpfTextView^

The IWpfTextView to which the subject buffers are being connected.

reason
Type: Microsoft.VisualStudio.Text.Editor::ConnectionReason

The cause of the connection.

subjectBuffers
Type: System.Collections.ObjectModel::Collection<ITextBuffer^>^

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

A connection can occur at one of three times:

  • when the view is first created

  • when the buffer becomes a member of the IBufferGraph for the view

  • when the IContentType of the buffer changes

Return to top
Show: