Skip to main content

TdxBarGroup.SetParentComponent(TComponent) Method

Sets the parent component specified by the AParent parameter.

Declaration

procedure SetParentComponent(AParent: TComponent); override;

Parameters

Name Type
AParent TComponent

Remarks

A group can be created and then added to the current bar manager’s Groups collection via the bar manager’s CreateGroup method. In this instance, this bar manager becomes the parent component of the group. When a group is created via its constructor, the SetParentComponent method must be called to set the parent component.

If the TdxBarManager object is passed as the AParent parameter, the SetParentComponent method specifies the parent bar manager and adds the current group to this bar manager’s Groups collection. Otherwise, the inherited method is called.

You can also use this method to replace the bar manager that the current group belongs to by another (specified by the AParent parameter).

To determine whether the current group belongs to a bar manager, use the HasParent function.

See Also