Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxBarGroup.SetParentComponent(TComponent) Method

Sets the parent component specified by the AParent parameter.

#Declaration

Delphi
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