The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.2.dll


public override bool CanShrink { get; set; }
Public Overrides Property CanShrink As Boolean

Property Value

Type Description

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


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.


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