System.RegularExpressions.TMatchCollectionEnumerator
Delphi
TMatchCollectionEnumerator = class
C++
class PASCALIMPLEMENTATION TMatchCollectionEnumerator : public System::TObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.RegularExpressions.pas System.RegularExpressions.hpp |
System.RegularExpressions | System.RegularExpressions |
Description
Contains functions and properties to enumerate over a TMatchCollection.
TMatchCollectionEnumerator has no public constructor. It is created by the GetEnumerator method and is the type of its return value.
After an enumerator is created, the MoveNext method must be called to advance the enumerator to the first element of the collection before reading the value of the Current property; otherwise, Current is undefined.
If changes are made to the collection, such as adding, modifying, or deleting elements, the enumerator is invalidated. The next call to MoveNext throws an InvalidOperationException. If the collection is modified between MoveNext and Current, Current returns the element that it is set to, even if the enumerator is already invalidated.