Partager via


ITextEditorFactoryService.CreateTextViewRoleSet Method (array<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

'Declaration
Function CreateTextViewRoleSet ( _
    ParamArray roles As String() _
) As ITextViewRoleSet
ITextViewRoleSet CreateTextViewRoleSet(
    params string[] roles
)
ITextViewRoleSet^ CreateTextViewRoleSet(
    ... array<String^>^ roles
)
abstract CreateTextViewRoleSet : 
        roles:string[] -> ITextViewRoleSet
function CreateTextViewRoleSet(
    ... roles : String[]
) : ITextViewRoleSet

Parameters

  • roles
    Type: array<String[]

    The roles.

Return Value

Type: Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet
The text view role set.

.NET Framework Security

See Also

Reference

ITextEditorFactoryService Interface

CreateTextViewRoleSet Overload

Microsoft.VisualStudio.Text.Editor Namespace