[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Gets the ordinal position for the action with the specified name.
Source position: actnlist.pas line 109
public function TCustomActionList.IndexOfName( |
const ActionName: string |
):Integer; |
ActionName |
|
Name for the action to locate in the Actions property. |
Ordinal position where the action with the specified name is stored, or -1 when not found.
IndexOfName is an Integer function used to get the position in Actions where the TAction instance with the name in ActionName is stored.
IndexOfName visits the class instances in Actions (in reverse order) and calls the CompareText routine in SysUtils to perform a case-insensitive comparison to Name properties in each. The return value contains the ordinal position in Action where the first matching name was located, or -1 when ActionName is not found.
IndexOfName is used to implement the ActionByName method.
|
Provides indexed access to actions in the list by their ordinal position. |
|
|
The total number of actions in the action list. |
|
|
Returns an action identified by its name. |
|
|
TAction is the basic action object used in the LCL. |
|
Version 4.0 | Generated 2025-05-03 | Home |