System.Classes.TBasicActionLink.Execute

提供:RAD Studio API Documentation

Delphi

function Execute(AComponent: TComponent = nil): Boolean; virtual;

C++

virtual bool __fastcall Execute(TComponent* AComponent = (TComponent*)(0x0));

プロパティ

種類 可視性 ソース ユニット 親
function public
System.Classes.pas
System.Classes.hpp
System.Classes TBasicActionLink

説明

アクションの Execute メソッドを呼び出し、クライアント AComponent がこのアクションの実行原因となったことをアクションに明示します。


Execute はアクションの Execute メソッドを呼び出し、その結果を返します。TBasicActionLink クラスでは、Execute はアクションの System.Classes.TBasicAction.Execute メソッドを呼び出し、アクションに OnExecute イベントのハンドラが割り当てられている場合は True を返し、そうでない場合は False を返します。

Execute では、AComponent がこのアクションの実行原因となったクライアント コンポーネントであることをアクションに明示します。なお、このコンポーネントをクリックしてアクションを実行したのはユーザーです。TBasicActionLink クラスでは、Execute は AComponent をアクションの System.Classes.TBasicAction.ActionComponent プロパティに割り当てます。

関連項目