Vcl.ActnMan.TCustomActionManager.AddAction
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
Inserts a new action into an existing actionband.
AddAction adds an action to an action band. Use this method to insert a new action into an existing actionband. Use FindItemByCaption and FindItemByAction methods to locate the position at which you want to insert the new item.