System.Generics.Collections.TList.TEnumerator.DoGetCurrent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoGetCurrent: T; override;

C++

virtual T __fastcall DoGetCurrent();

Properties

Type Visibility Source Unit Parent
function protected
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TEnumerator

Description

Returns the currently focused element in the container.

System.Generics.Collections.TList.TEnumerator.DoGetCurrent inherits from System.Generics.Collections.TEnumerator.DoGetCurrent. All content below this line refers to System.Generics.Collections.TEnumerator.DoGetCurrent.

Returns the currently focused element in the container.

Implement DoGetCurrent to return the currently focused element in the container. DoGetCurrent is the reader method for the Current property.

DoGetCurrent is used together with DoMoveNext, giving the particular order in which the container is enumerated.

See Also