Skip to main content

XRLabel.CanGrow Property

Gets or sets whether the label can increase its height to display all text.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v25.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[Browsable(true)]
public override bool CanGrow { get; set; }

Property Value

Type Description
Boolean

true to allow the label to increase its height to display all text; otherwise, false.

Remarks

Use the CanGrow property to specify whether a label expands vertically when its content does not fit:

  • The label increases its height when the content exceeds its bounds.
  • Controls located below the label move down to prevent overlap.
  • A control that overlaps the label by even one pixel does not move.
  • If the label’s AnchorVertical property is set to VerticalAnchorStyles.Bottom or VerticalAnchorStyles.Both, the CanGrow and CanShrink properties have no effect on the final height.
  • If the label calculates a summary, the layout engine does not recalculate its size. The CanGrow and CanShrink properties have no effect. Overlap with underlying controls may occur.
  • The CanGrow property has no effect if the XRLabel.Angle property value is not 0.

The reporting engine converts controls to bricks during document creation. The engine cannot change brick size afterward. Editable content cannot expand the control in the printed document. The editable area cannot exceed the control’s original size.

See Also