Delen via


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

'Declaration
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

  • subjectBuffers
    Type: 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

See Also

Reference

IWpfTextViewConnectionListener Interface

Microsoft.VisualStudio.Text.Editor Namespace