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

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


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

Property Value

Type Description

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


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.


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 participate in calculating a final height value of this control.

See Also