From RAD Studio API Documentation
Jump to: navigation, search


function IsGroupIndexLinked: Boolean; virtual;


virtual bool __fastcall IsGroupIndexLinked();


Type Visibility Source Unit Parent
function protected
System.Actions TContainedActionLink


Retrieves whether the GroupIndex property for the action and for the client of the action link are linked.

Descendants of TContainedActionLink can call IsGroupIndexLinked to determine whether they need to distribute changes made to the action's GroupIndex property to the corresponding GroupIndex property of the client object:

  • When IsGroupIndexLinked returns True, the action link controls the GroupIndex property; changes made to the action's GroupIndex property are reflected by changes to the corresponding property of the client object.
  • When IsGroupIndexLinked returns False, the client object is not influenced by the GroupIndex 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).

As implemented in TContainedActionLink, IsGroupIndexLinked merely checks that the Action property specifies a descendant of TContainedAction (that is, it is an action that has an GroupIndex property), and if so, returns True.

Descendant classes can override IsGroupIndexLinked to determine whether the GroupIndex property is linked with the appropriate client property. If a client linked by a descendant class object (like FMX.Forms.TForm) does not support the GroupIndex property, then IsGroupIndexLinked always returns False.

The implementation of TActionLink is the following:

See Also