Sign in Join
FPDoc Onlineexperiment

TCustomActionList.Actions property

Member of TCustomActionListpublicIn unit ActnList

Provides indexed access to actions in the list by their ordinal position.

Declaration

pascal
property Actions[Index: Integer]: TContainedAction read GetAction write SetAction; default;

Description

Actions is an indexed TContainedAction property used to access an action in the list by its ordinal position. Values in Actions are maintained when the AddAction and RemoveAction methods are called.

Actions is the default property for the class instance, and the target for the TActionListEnumerator returned from the GetEnumerator method.

Use ActionCount to get the number of actions available in the internal storage for the property.

Use methods like ActionByName or IndexOfName to access an action in the list using the Name property for the component.

See also

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