GroupCollection.IList<Group>.IndexOf(Group) GroupCollection.IList<Group>.IndexOf(Group) GroupCollection.IList<Group>.IndexOf(Group) Method

Definition

Determines the index of a specific group in the group collection.

 virtual int System.Collections.Generic.IList<System.Text.RegularExpressions.Group>.IndexOf(System::Text::RegularExpressions::Group ^ item) = System::Collections::Generic::IList<System::Text::RegularExpressions::Group ^>::IndexOf;
int IList<Group>.IndexOf (System.Text.RegularExpressions.Group item);
Function IndexOf (item As Group) As Integer Implements IList(Of Group).IndexOf

Parameters

item
Group Group Group

The group to locate in the group collection.

Returns

The index of the <paramref. name="item"></paramref.> if found; otherwise, -1.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the GroupCollection instance is cast to an IList<T> interface.

Applies to