共用方式為


ITextViewRoleSet.UnionWith 方法

取得一組及其他文字檢視角色集合的聯集。

命名空間:  Microsoft.VisualStudio.Text.Editor
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Function UnionWith ( _
    roleSet As ITextViewRoleSet _
) As ITextViewRoleSet
ITextViewRoleSet UnionWith(
    ITextViewRoleSet roleSet
)
ITextViewRoleSet^ UnionWith(
    ITextViewRoleSet^ roleSet
)
abstract UnionWith : 
        roleSet:ITextViewRoleSet -> ITextViewRoleSet
function UnionWith(
    roleSet : ITextViewRoleSet
) : ITextViewRoleSet

參數

傳回值

類型:Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet
聯集的一組及其他文字檢視角色設定。

例外狀況

例外狀況 條件
ArgumentNullException

roleSet 為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

ITextViewRoleSet 介面

Microsoft.VisualStudio.Text.Editor 命名空間