Returns the ith Match in the collection.
[C#] In C#, this member is the indexer for the MatchCollection class.
[Visual Basic] Overridable Public Default ReadOnly Property Item( _ ByVal i As Integer _ ) As Match [C#] public Match this[ int i ] {virtual get;} [C++] public: __property virtual Match* get_Item( int i ); [JScript] returnValue = MatchCollectionObject.Item(i); -or- returnValue = MatchCollectionObject(i);
[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.
MatchCollection Class | MatchCollection Members | System.Text.RegularExpressions Namespace