Partager via


ITextViewRoleSet.Contains Method

Determines whether the given text view role is a member of the set.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Function Contains ( _
    textViewRole As String _
) As Boolean
bool Contains(
    string textViewRole
)
bool Contains(
    String^ textViewRole
)
abstract Contains : 
        textViewRole:string -> bool
function Contains(
    textViewRole : String
) : boolean

Parameters

  • textViewRole
    Type: String

    The role.

Return Value

Type: Boolean
true if the given text view role is a member of the set, otherwise false.

Exceptions

Exception Condition
ArgumentNullException

textViewRole is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ITextViewRoleSet Interface

Microsoft.VisualStudio.Text.Editor Namespace