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

# TMenuItem.ActionLink

Contains the link to the Action for the menu item.

## Declaration

Source position: menus.pp line 257

`protected property TMenuItem.ActionLink : TMenuActionLink read FActionLink write FActionLink;`

## Description

ActionLink is a TMenuActionLink property which maintains an association between the control and an assigned Action. ActionLink is unassigned (Nil) until a value is assigned to the Action property. ActionLink is (re-)created and assigned when the value is stored in Action. It is used (when assigned) to read the value for the Action property.

ActionLink is used in the Click method to determine whether the OnClick event handler is signalled for the control, or whether the Execute method in Action is called.

## See also

TMenuItem.Action |  | Action is the default action associated with the menu item.
TMenuItem.SetAction |  | Sets the value for the Action property.
TMenuItem.Click |  | Performs actions needed when the menu item is clicked.
TMenuItem.Checked |  | Indicates whether a check mark is displayed beside the menu item.
TMenuItem.OnClick |  | Event handler signalled to perform the actions needed when the menu item is executed.
TMenuItem.GetActionLinkClass |  | Gets the class reference used to create an action link for the class.
TBasicAction.Execute