Sign in Join
FPDoc Onlineexperiment

TCustomActionList.GetEnumerator function

Member of TCustomActionListpublicIn unit ActnList

Gets an enumerator for actions in the action list.

Declaration

pascal
function GetEnumerator: TActionListEnumerator

Function result

TActionListEnumerator instance for the class.

Description

Gets a TActionListEnumerator instance used to access values in the Actions property. It allows access to the values in the list using FOR..IN syntax. For example:

// var 
//  AnAction: TBasicAction;
//  AList: TActionList;
// ...
begin
  for AnAction in AList do SomethingWith(AnAction);
end;

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.