ITextViewConnectionListener.SubjectBuffersDisconnected Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.