Skip to main content

TdxCustomLayoutItem.Pack Method

Simplifies the layout structure by removing redundant hidden groups.

Declaration

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