FMX.ActnList.TActionLink.SetCaption

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetCaption(const Value: string); override;

C++

virtual void __fastcall SetCaption(const System::UnicodeString Value);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.ActnList.pas
FMX.ActnList.hpp
FMX.ActnList TActionLink

Description

Introduces an interface for setting the caption for a client of the action link.

FMX.ActnList.TActionLink.SetCaption inherits from System.Actions.TContainedActionLink.SetCaption. All content below this line refers to System.Actions.TContainedActionLink.SetCaption.

Introduces an interface for setting the caption for a client of the action link.

Value specifies the string for which the caption should be set.

The associated action calls SetCaption when its Caption property changes so that the action link can propagate the new Caption value to the client object.

As implemented in TContainedActionLink, SetCaption does nothing.

Descendant classes can override SetCaption to set the client's Caption property if the IsCaptionLinked method returns True.

See Also