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

TStringsEnumerator

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

Implements IEnumerator for the TStrings class.

Declaration

Source position: classesh.inc line 880

type TStringsEnumerator = class

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.

end;

Inheritance

TStringsEnumerator

  

Implements IEnumerator for the TStrings class.

|

TObject

  

Base class of all classes.

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: Dec 24 2024