XRControl.BackColor Property
Gets or sets a control’s background color.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v22.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. In the same way, the BackColor
value of a control applies to all of its child report controls in the Controls collection if their BackColor
property value is not specified. Review the following help topic for more information: Appearance Properties.
Note
Appearance properties may not be used by all descendants of the current report element for which they are defined. For example, class XRPageBreak ignores property XRControl.BackColor
.
If a report element has 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.