Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TCollectionEnumerator

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

Implements IEnumerator for the TCollection class.

Declaration

Source position: classesh.inc line 793

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

  

Base class of all classes.

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: Nov 23 2024