Creates a ITextViewRoleSet containing the given roles.
Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Declaration
Function CreateTextViewRoleSet ( _
    roles As IEnumerable(Of String) _
) As ITextViewRoleSet
ITextViewRoleSet CreateTextViewRoleSet(
    IEnumerable<string> roles
)
ITextViewRoleSet^ CreateTextViewRoleSet(
    IEnumerable<String^>^ roles
)
abstract CreateTextViewRoleSet : 
        roles:IEnumerable<string> -> ITextViewRoleSet
function CreateTextViewRoleSet(
    roles : IEnumerable<String>
) : ITextViewRoleSet
Parameters
roles
Type: IEnumerable<String>The roles.
Return Value
Type: Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet
The text view role set.
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | roles is nulla null reference (Nothing in Visual Basic).  | 
.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.
 
See Also
Reference
ITextEditorFactoryService Interface