Share via


ITextEditorFactoryService.CreateTextViewRoleSet, méthode (IEnumerable<String>)

Crée un élément ITextViewRoleSet contenant les rôles spécifiés.

Espace de noms :  Microsoft.VisualStudio.Text.Editor
Assembly :  Microsoft.VisualStudio.Text.UI.Wpf (dans Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntaxe

'Déclaration
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

Paramètres

  • roles
    Type : IEnumerable<String>

    Les rôles.

Valeur de retour

Type : Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet
Ensemble de rôles d'affichage de texte.

Exceptions

Exception Condition
ArgumentNullException

roles a la valeur nullune référence null (Nothing en Visual Basic).

Sécurité .NET Framework

Voir aussi

Référence

ITextEditorFactoryService Interface

CreateTextViewRoleSet, surcharge

Microsoft.VisualStudio.Text.Editor, espace de noms