pp108 : Collapsible

Collapsible

It indicates whether a Groupbox control is collapsible. When set to True, the Groupbox control will contain a toggle button to its right in the title bar. Clicking it produces the effect of collapsing and expanding the Groupbox control. It is set to false, by default.

Syntax

DesignTime

This is a design-time property and can be set through the property sheet of the control.

Remarks

This property works differently in different layouts. The following list describes the behavior of the property.

  • Vertical layout: All controls in this layout have positions relative to the control in which they are contained. When a Groupbox is collapsed, all the controls below it move up.
  • Free layout: All controls have fixed or absolute positions. When a Groupbox collapses, the controls below it do not move up. Therefore, a gap remains between the controls.
  • Horizontal layout: All controls appear horizontally. Therefore, there will be no change in their positions when the Groupbox is collapsed.

Applies to

Groupbox