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

# TCustomActionList.ActionCount

The total number of actions in the action list.

## Declaration

Source position: actnlist.pas line 114

`public property TCustomActionList.ActionCount : Integer read GetActionCount;`

## Description

ActionCount is a read-only Integer property which contains the number of actions in the action list. The property value is read from the internal list used to store the actions maintained using the AddAction and RemoveAction methods.

ActionCount provides the upper limit for the index values used to access the items in the Actions property. Index values must be in the range 0..ActionCount-1.

## See also

TCustomActionList.Actions |  | Provides indexed access to actions in the list by their ordinal position.
TCustomActionList.AddAction |  | Adds the specified action to the action list.
TCustomActionList.RemoveAction |  | Removes the specified action from the action list.