System.Classes.TComponent.GetEnumerator

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetEnumerator: TComponentEnumerator;

C++

TComponentEnumerator* __fastcall GetEnumerator(void);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

Returns a TComponent enumerator.

GetEnumerator returns a TComponentEnumerator reference, which enumerates the components contained within a specified containing component.

To process all these subcomponents, call the TComponentEnumerator GetCurrent method within a While MoveNext do loop.

See Also