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

# TCustomActionList.Actions

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

## Declaration

Source position: actnlist.pas line 113

`public property TCustomActionList.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

TCustomActionList.ActionCount |  | The total number of actions in the action list.
TCustomActionList.ActionByName |  | Returns an action identified by its name.
TCustomActionList.IndexOfName |  | Gets the ordinal position for the action with the specified name.
TCustomActionList.GetEnumerator |  | Gets an enumerator for actions in the action list.