Compartir a través de


ITextEditorFactoryService.CreateTextViewRoleSet Method (IEnumerable<String>)

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

'Declaración
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

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

See Also

Reference

ITextEditorFactoryService Interface

CreateTextViewRoleSet Overload

Microsoft.VisualStudio.Text.Editor Namespace