共用方式為


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

Parameters

textView
IWpfTextView

The ITextView from which the subject buffers are being disconnected.

reason
ConnectionReason

The cause of the disconnection.

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