IWpfTextViewConnectionListener.SubjectBuffersConnected 方法

当相应 IContentType 的一个或多个 ITextBuffer 对象连接到 ITextView 时调用。

命名空间:  Microsoft.VisualStudio.Text.Editor
程序集:  Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

语法

声明
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>
)

参数

  • subjectBuffers
    类型:Collection<ITextBuffer>

    具有匹配内容类型的 ITextBuffer 对象的非空列表。

备注

连接可能发生一致三次:

.NET Framework 安全性

请参阅

参考

IWpfTextViewConnectionListener 接口

Microsoft.VisualStudio.Text.Editor 命名空间