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

XRPanel.CanShrink Property

Specifies whether or not the panel’s height is allowed to decrease if its contents do not completely fit into the control’s dimensions.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[Browsable(true)]
public override bool CanShrink { get; set; }

#Property Value

Type Description
Boolean

true, if the panel’s height is allowed to decrease; otherwise, false.

#Remarks

To avoid blank space from appearing in a report, enable the XRPanel.CanShrink property. This will automatically adjust the panel’s bottom border to that of the lowermost control it contains.

RD_Controls_Panel_1

As a result, all other report elements that reside below the panel will be pushed up, except for the controls that overlap the shrinking panel even by one pixel.

See Also