From Appmethod Libraries
Jump to: navigation, search


Object Pascal

TMatchCollectionEnumerator = class


class PASCALIMPLEMENTATION TMatchCollectionEnumerator : public System::TObject


Type Visibility Source Unit Parent
class public
System.RegularExpressions System.RegularExpressions


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.

See Also