Skip to main content

XRPanel.CanGrow Property

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

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

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

Property Value

Type Description
Boolean

true if the panel’s height can grow in order to display all its contents; otherwise, false.

Remarks

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

Note

If the panel’s XRControl.AnchorVertical property is set to VerticalAnchorStyles.Bottom or VerticalAnchorStyles.Both, the CanGrow property value is ignored and doesn’t affect final height calculation for this panel.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CanGrow 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.

See Also