ITextViewConnectionListener.SubjectBuffersConnected 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 of the appropriate IContentType are connected to a ITextView.
public:
void SubjectBuffersConnected(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::Editor::ConnectionReason reason, System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Text::ITextBuffer ^> ^ subjectBuffers);
public void SubjectBuffersConnected (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.Editor.ConnectionReason reason, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Text.ITextBuffer> subjectBuffers);
abstract member SubjectBuffersConnected : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.Editor.ConnectionReason * System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Text.ITextBuffer> -> unit
Public Sub SubjectBuffersConnected (textView As ITextView, reason As ConnectionReason, subjectBuffers As IReadOnlyCollection(Of ITextBuffer))
Parameters
- reason
- ConnectionReason
The cause of the connection.
- subjectBuffers
- IReadOnlyCollection<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.