XRTableCell.CanShrink Property
Gets or sets a value indicating whether the table cell’s height can decrease if its contents do not completely fill the control.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if the table cell’s height can decrease in order to remove unused space; otherwise, false. |
Remarks
When the CanShrink property is set to true and the table cell’s contents don’t completely fill the table cell, its height will be decreased to the height of its contents. In this case, the entire table row’s height will try to decrease (if possible), and move up other table rows below the current row.
Note
If the XRControl.AnchorVertical property of the parent XRTable object is set to VerticalAnchorStyles.Bottom or VerticalAnchorStyles.Both, the XRTableCell.CanGrow and CanShrink property values are ignored, and don’t affect final height calculation for this control.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CanShrink property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.