ITextViewConnectionListener.SubjectBuffersDisconnected Method

Definition

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

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

Parameters

textView
ITextView

The ITextView from which the subject buffers are being disconnected.

reason
ConnectionReason

The cause of the disconnection.

subjectBuffers
IReadOnlyCollection<ITextBuffer>

The non-empty list of ITextBuffer objects.

Remarks

Text buffers can be disconnected when they are removed as source buffers of some projection buffer, or when their content type changes, or when the ITextView is closed.

Applies to