A newer version of this page is available. Switch to the current version.

XRSubreport.CanShrink Property

Gets or sets a value indicating whether the subreport's height can decrease if its contents don't completely fill the control.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


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

Property Value

Type Description

true, if the subreport's height can decrease in order to remove unused space; otherwise, false.


Use the CanShrink property to specify whether the report builder should take into account the height of an XRSubreport control when generating a report. It may be required to take this into account, because usually, the mutual location of any report control is considered when generating a report document. But, as a XRSubreport control actually represents the report itself, the height of a subreport normally should not be taken into account in the generated report document. This property enables this behavior to be controlled in the report builder.

See Also