TStringsEnumerator
[Properties (by Name)][Methods (by Name)][Events (by Name)]
Implements IEnumerator for the TStrings class.
Declaration
Source position: classesh.inc line 593
Type
TStringsEnumerator = class
private
FStrings : TStrings;
FPosition : Integer;
public
constructor Create(AStrings: TStrings);
function GetCurrent : string;
function MoveNext : Boolean;
Current : string;
end
;
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.
Members
Member | Type | Visibility | Description |
---|---|---|---|
Create | Method | public | Initialize a new instance of TStringsEnumerator |
Current | Property | public | Current pointer in the list |
FPosition | Field | private | |
FStrings | Field | private | |
GetCurrent | Method | public | Return the current pointer in the list |
MoveNext | Method | public | Move the position of the enumerator to the next position in the list. |
Inheritance
Class | Description |
---|---|
TStringsEnumerator | Implements IEnumerator for the TStrings class. |
See also
Name | Description |
---|---|
Integer | A signed 16-bits integer |
#rtl.system.IEnumerator | Enumerator support interface |
TStrings | Class to manage arrays or collections of strings |
TStrings | Class to manage arrays or collections of strings |
TStrings.GetEnumerator | Create an IEnumerator instance |