Show: Delphi C++
Display Preferences

FMX.Types.TFmxObject.GetActionLinkClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetActionLinkClass: TActionLinkClass; virtual;

C++

virtual Fmx::Actnlist::TActionLinkClass __fastcall GetActionLinkClass();

Properties

Type Visibility Source Unit Parent
function protected
FMX.Types.pas
FMX.Types.hpp
FMX.Types TFmxObject

Description

Returns the associated action link class.

Returns the class reference for the TActionLink class or for one of its descendants.

In TFmxObject, GetActionLinkClass always returns nil.

In descendant classes, GetActionLinkClass should return the appropriate class type for the action link used with the class object. When a control object of the descendant from the TFmxObject class tries to assign a value to the Action property, the setter method for Action calls GetActionLinkClass. If GetActionLinkClass returns a non-nil value, then the action object is assigned to Action. If the control object does not support actions, then GetActionLinkClass should return nil. In this case, attempting to set a value to the Action property raises the following exception:

StrEActionNoSuported = 'Class %s does not support the action'    

See Also

Personal tools
In Other Languages
Previous Versions
Assistance