XRLabel.CanGrow Property

Gets or sets a value indicating whether the label's height can grow in order to display the contents in their entirety.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.1.dll

Syntax

public override bool CanGrow { get; set; }

Returns

Type Description
Boolean

true if the label's height can grow in order to display all its text; otherwise, false.

When the CanGrow property is set to true, the label's height will be automatically increased (if required), so that all the text it contains is displayed. If there are other controls below the current label, they will be moved down to prevent them from overlapping. Note that if a control overlaps the growing control by even one pixel, it will not be pushed down by the growing control.

Note

If a label's XRControl.AnchorVertical property is set to VerticalAnchorStyles.Bottom or VerticalAnchorStyles.Both, the CanGrow and XRLabel.CanShrink property values are ignored, and don't participate in calculating a final height value of this control.

Note

If a label participates in calculating a summary, its CanGrow and XRLabel.CanShrink property values are ignored.

Note

The CanGrow property is ignored when the XRLabel.Angle property's value is not 0.

See Also