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

TListEnumerator

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

Implements IEnumerator for the TList class.

Declaration

Source position: classesh.inc line 287

type TListEnumerator = class

public

  constructor Create();

  

Initialize a new instance of TListEnumerator

  function GetCurrent;

  

Return the current pointer in the list

  function MoveNext;

  

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

  property Current: Pointer; [r]

  

Current pointer in the list

end;

Inheritance

TListEnumerator

  

Implements IEnumerator for the TList class.

|

TObject

Description

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

See also

TList

  

Class to manage collections of pointers.

TList.GetEnumerator

  

Create an IEnumerator instance

#rtl.system.IEnumerator

  

Enumerator support interface


Documentation generated on: May 14 2021