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

TdxCustomLayoutItem.Pack Method

In This Article

Simplifies the layout structure by removing redundant hidden groups.

#Declaration

Delphi
procedure Pack;

#Remarks

A hidden group is considered redundant if any of the following conditions are met:

  • The group contains no child elements.

  • The group contains one child element whose alignment matches the group’s alignment.

  • The group’s alignment matches its parent group’s alignment and the parent group contains no other child elements.

Call the Pack method to remove any redundant child groups within the current group, and move their contents to their immediate parent groups. Manually hidden groups are not removed in this manner.

See Also