API:Vcl.StdCtrls.TButtonActionLink.IsCheckedLinked
Delphi
function IsCheckedLinked: Boolean; override;
C++
virtual bool __fastcall IsCheckedLinked(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TButtonActionLink |
Description
Retrieves whether the Checked property for the action and for the client of the action link are linked.
Vcl.StdCtrls.TButtonActionLink.IsCheckedLinked inherits from System.Actions.TContainedActionLink.IsCheckedLinked. All content below this line refers to System.Actions.TContainedActionLink.IsCheckedLinked.
Retrieves whether the Checked property for the action and for the client of the action link are linked.
Descendants of TContainedActionLink call IsCheckedLinked to determine whether they need to distribute changes made to the action's Checked property to the corresponding Checked property of the client object:
- When IsCheckedLinked returns
True
, the action link controls the Checked property; changes to the action's Checked property are reflected by changes to the corresponding property of the client object. - When IsCheckedLinked returns
False
, the client object is not influenced by the Checked property of its action for one of the following reasons:- It does not have a corresponding property.
- It manages the value of its corresponding property independently (more common).
Descendant classes can override IsCheckedLinked to determine whether the Checked property is linked with the appropriate client property. If a client (like FMX.Forms.TForm) linked by a descendant class object does not support the Checked property, then IsCheckedLinked always returns False
.
As implemented in TActionLink:
- IsCheckedLinked returns
False
if the action, assigned to the action link, belongs to TCustomViewAction and the component of this action equals the client of the action link.
- Also IsCheckedLinked returns
False
if the client does not support the Checked property.
- Otherwise, IsCheckedLinked returns
True
.