Back to Devexpress

XRSubreport.CanShrink Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrsubreport-7d03e220.md

latest1.9 KB
Original Source

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

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[Browsable(true)]
public override bool CanShrink { get; set; }
vb
<Browsable(True)>
Public Overrides Property CanShrink As Boolean

Property Value

TypeDescription
Boolean

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

|

Remarks

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

XRSubreport Class

XRSubreport Members

DevExpress.XtraReports.UI Namespace