[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TCollectionEnumerator

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements IEnumerator for the TCollection class.

Declaration

Source position: classesh.inc line 507

type TCollectionEnumerator = class

public

  constructor Create();

  

Initialize a new instance of TCollectionEnumerator

  function GetCurrent;

  

Return the current pointer in the list

  function MoveNext;

  

Move the position of the enumerator to the next position in the collection.

  property Current: TCollectionItem; [r]

  

Current pointer in the list

end;

Inheritance

TCollectionEnumerator

  

Implements IEnumerator for the TCollection class.

|

TObject

Description

TCollectionEnumerator implements the #rtl.system.IEnumerator interface for the TCollection class, so the TCollection class can be used in a for ... in loop. It is returned by the TCollection.GetEnumerator method of TCollection.

See also

TCollection

  

Base class to manage collections of named objects.

TCollection.GetEnumerator

  

Create an IEnumerator instance

#rtl.system.IEnumerator

  

Enumerator support interface


Documentation generated on: May 14 2021