API:Vcl.ActnMan.TCustomActionManager.AddAction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddAction(AnAction: TCustomAction; AClient: TActionClient;
After: Boolean = True): TActionClientItem;

C++

HIDESBASE TActionClientItem* __fastcall AddAction(Vcl::Actnlist::TCustomAction* AnAction, TActionClient* AClient, bool After = true);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ActnMan.pas
Vcl.ActnMan.hpp
Vcl.ActnMan TCustomActionManager

Description

Adds an action to the list.

Vcl.ActnMan.TCustomActionManager.AddAction inherits from System.Actions.TContainedActionList.AddAction. All content below this line refers to System.Actions.TContainedActionList.AddAction.

Adds an action to the list.

Applications cannot call this protected method. AddAction is used internally to add an action to the Actions property array.

To add an action to an action list, set the action's ActionList property.

See Also