System.Classes.TComponent.ExecuteAction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExecuteAction(Action: TBasicAction): Boolean; dynamic;

C++

DYNAMIC bool __fastcall ExecuteAction(TBasicAction* Action);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

Executes an action.

ExecuteAction executes an action for the component. Action is a TBasicAction or any descendant of TBasicAction.

ExecuteAction first checks whether the provided action is compatible with the component and then executes the action. The return value is a Boolean. A value of True is returned if the action was executed; otherwise, False is returned.

Derived classes can override this method to implement a distinct way of handling actions.

See Also