System.Actions.TContainedActionLink.IsVisibleLinked
Delphi
function IsVisibleLinked: Boolean; virtual;
C++
virtual bool __fastcall IsVisibleLinked();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Actions.pas System.Actions.hpp |
System.Actions | TContainedActionLink |
Description
Defines the method to retrieve whether the Visible property of the action assigned to the action link, and the Visible property of the client of the action link are linked.
Descendants of TContainedActionLink call IsVisibleLinked to determine whether they need to distribute changes in the Visible property of the action to the Visible property of the client:
- When TActionLink.IsVisibleLinked returns
True
:- The action controls the Visible property.
- The changes made to the action's Visible property are reflected by changes to the corresponding Visible property of the client object.
- It means that if the Visible property of the action is
False
, then the Visible property of the client is alsoFalse
, and the client becomes invisible. For example, if a client is a menu item or a control, then this menu item or control is invisible.
- When IsVisibleLinked returns
False
, the client object does not reflect the Visible property of its action for one of the following reasons:- It does not have a corresponding property.
- It manages the value of its corresponding Visible property independently (more common).
Descendant classes can override IsVisibleLinked to determine whether the Visible property of the action is linked with the appropriate client property.
As implemented in TActionLink:
- If the action, assigned to the action link, belongs to TCustomViewAction and the component of this action equals the client of the action link, IsVisibleLinked returns
False
. - Otherwise, IsVisibleLinked returns
True
.