XRControl.BackColor Property
Gets or sets a control’s background color.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
Property Value
Type | Description |
---|---|
Color | A Color object that is the background color. The default value is Transparent. |
Remarks
The BackColor
property sets the background color of the control.
If the BackColor
property value is not specified, the control retrieves its value from the parent control.
Appearance properties specified for bands or panels propagate to child controls, even though they may not take effect for some report elements. An obvious example of this behavior is the DetailBand element, that has no visible border or background color, even though it passes appearance property settings to its child controls. Another example is the XRPageBreak control, that has the XRControl.BackColor
property, but ignores its value during rendering.
Review the following help topic for more information: Appearance Properties.
If a report element has a style assigned to it, the priority of the properties defined by that style is determined by the StylePriority property. Note that if conditional formatting is involved, the appearance it defines has a higher priority.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the BackColor 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.