Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XRControl.CanHaveChildren Property

Gets a value indicating whether the control can contain other controls.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[Browsable(false)]
public virtual bool CanHaveChildren { get; }

#Property Value

Type Description
Boolean

A Boolean value indicating whether an XRControl instance can contain other controls.

#Remarks

By default the return value of this property is false. Those XRControl‘s descendants that allow their objects to contain other controls override this property with a return value of true. The child controls in these cases can be accessed via the XRControl.Controls property.

Not all descendants of the XRControl class use the CanHaveChildren property. For example, the Band class descendants ignore the CanHaveChildren property.

See Also