ITextViewRoleSet::ContainsAny Method (IEnumerable<String^>^)

 

Determines whether the set contains at least one of the given text view roles.

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

bool ContainsAny(
	IEnumerable<String^>^ textViewRoles
)

Parameters

textViewRoles
Type: System.Collections.Generic::IEnumerable<String^>^

The list of roles to check for inclusion.

Return Value

Type: System::Boolean

true if the set contains at least one of the given text view roles, otherwise false.

Exception Condition
ArgumentNullException

if textViewRoles is null.

Returns false if textViewRoles contains no roles. Null values in textViewRoles are ignored.

Return to top
Show: