System.Classes.TCollection.GetEnumerator
Delphi
function GetEnumerator: TCollectionEnumerator; inline;
C++
TCollectionEnumerator* __fastcall GetEnumerator();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TCollection |
Description
Returns a TCollection enumerator.
GetEnumerator returns a TCollectionEnumerator reference, which enumerates all items in the collection.
To do so, call the TCollectionEnumerator GetCurrent method within a While MoveNext do loop.