IWpfTextViewConnectionListener.SubjectBuffersConnected Method
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)
Syntax
'Декларация
Sub SubjectBuffersConnected ( _
textView As IWpfTextView, _
reason As ConnectionReason, _
subjectBuffers As Collection(Of ITextBuffer) _
)
void SubjectBuffersConnected(
IWpfTextView textView,
ConnectionReason reason,
Collection<ITextBuffer> subjectBuffers
)
void SubjectBuffersConnected(
IWpfTextView^ textView,
ConnectionReason reason,
Collection<ITextBuffer^>^ subjectBuffers
)
abstract SubjectBuffersConnected :
textView:IWpfTextView *
reason:ConnectionReason *
subjectBuffers:Collection<ITextBuffer> -> unit
function SubjectBuffersConnected(
textView : IWpfTextView,
reason : ConnectionReason,
subjectBuffers : Collection<ITextBuffer>
)
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.
Remarks
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.