Back to Devexpress

XRTableCell.CanShrink Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrtablecell-67e7fc32.md

latest2.1 KB
Original Source

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

NuGet Package : DevExpress.Reporting.Core

Declaration

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

Property Value

TypeDescription
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.

See Also

CanGrow

XRTableCell Class

XRTableCell Members

DevExpress.XtraReports.UI Namespace