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

TStringsEnumerator

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

Implements IEnumerator for the TStrings class.

Declaration

Source position: classesh.inc line 590

type TStringsEnumerator = class end;

public

  constructor Create();

  

Initialize a new instance of TStringsEnumerator

  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: string; [r]

  

Current pointer in the list

Inheritance

TStringsEnumerator

  

Implements IEnumerator for the TStrings class.

|

TObject

Description

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

See also

TStrings

  

Class to manage arrays or collections of strings

TStrings.GetEnumerator

  

Create an IEnumerator instance

#rtl.system.IEnumerator

  

Enumerator support interface


Documentation generated on: Nov 16 2015