System.RegularExpressions.TMatchCollection
Delphi
  TMatchCollection = record
  private
    FList: TArray<TMatch>;
    constructor Create(const ANotifier: IInterface; const Input: string;
      AOptions: TRegExOptions; StartPos: Integer);
    function GetCount: Integer;
    function GetItem(Index: Integer): TMatch;
  public
    function GetEnumerator: TMatchCollectionEnumerator;
    property Count: Integer read GetCount;
    property Item[Index: Integer]: TMatch read GetItem; default;
  end;
C++
struct DECLSPEC_DRECORD TMatchCollection
{
public:
    TMatch operator[](int Index) { return this->Item[Index]; }
private:
#ifndef _WIN64
    System::DynamicArray<TMatch> FList;
#else /* _WIN64 */
    System::TArray__1<TMatch> FList;
#endif /* _WIN64 */
protected:
    __fastcall TMatchCollection(const System::_di_IInterface ANotifier, const System::UnicodeString Input, TRegExOptions AOptions, int StartPos);
private:
    int __fastcall GetCount();
    TMatch __fastcall GetItem(int Index);
public:
    TMatchCollectionEnumerator* __fastcall GetEnumerator();
    __property int Count = {read=GetCount};
    __property TMatch Item[int Index] = {read=GetItem};
    TMatchCollection() {}
};
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet | 
|---|---|---|---|---|
record struct  | 
		public | System.RegularExpressions.pas System.RegularExpressions.hpp  | 
        System.RegularExpressions | System.RegularExpressions | 
Beschreibung
Enthält eine Menge von TMatch-Instanzen, jede eine erfolgreiche Übereinstimmung eines regulären Ausdrucks mit dem Eingabe-String.
TMatchCollection hat keinen public-Konstruktor. TMatchCollection wird als Rückgabewert der Methode Matches erstellt. Die Kollektion wird mit einer TMatch-Instanz für jede im Eingabe-String gefundene Übereinstimmung gefüllt. Die Eigenschaft Count enthält die Länge der TMatchCollection-Menge.