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

# TWinControlEnumerator

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

Implements an enumerator for TWinControl instances.

## Declaration

Source position: controls.pp line 2064

`type TWinControlEnumerator = class`
`protected`
`FIndex: Integer;` |  | Member with the current position for the enumerator.
`FLowToHigh: Boolean;` |  | Member which indicates the order for the enumerator.
`FParent: TWinControl;` |  | Member with the Parent for the enumerated values.
`function GetCurrent;` |  | Gets the current enumerator value.
`public`
`constructor Create();` |  | Constructor for the class instance.
`function GetEnumerator;` |  | Returns the enumerator in the class instance (Self).
`function MoveNext;` |  | Moves to the next value using the ordering in effect for the enumerator.
`property Current: TControl; [r]` |  | Contains the TControl instance which is the current value in the enumerator.
`end;`

## Inheritance

`TWinControlEnumerator` |  | Implements an enumerator for TWinControl instances.
`TObject`

## Description

TWinControlEnumerator is a class used to implement an enumerator for TWinControl class instances. TWinControlEnumerator provides support the enumerator interface through its GetCurrent and MoveNext methods.

TWinControlEnumerator is the type returned by the GetEnumeratorControls and GetEnumeratorControlsReverse functions in TWinControl.

## See also

TWinControlEnumerator.Current |  | Contains the TControl instance which is the current value in the enumerator.
TWinControlEnumerator.MoveNext |  | Moves to the next value using the ordering in effect for the enumerator.
TWinControl.GetEnumeratorControls |  | Gets an enumerator for the Controls property.
TWinControl.GetEnumeratorControlsReverse |  | Gets a reverse-order enumerator for the Controls property.