System.RegularExpressions.TMatchCollection.GetEnumerator

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetEnumerator: TMatchCollectionEnumerator;

C++

TMatchCollectionEnumerator* __fastcall GetEnumerator();

Properties

Type Visibility Source Unit Parent
function public
System.RegularExpressions.pas
System.RegularExpressions.hpp
System.RegularExpressions TMatchCollection

Description

Aquires a TMatchCollectionEnumerator to iterate through the TMatch instances in the collection.

GetEnumerator returns a TMatchCollectionEnumerator object. TMatchCollectionEnumerator has methods and properties to enumerate through the collection. This enumeration is very expensive compared to using the Count property and indexing through the Item array.

See Also