XRControl.BackColor Property

Gets or sets the control's background color.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.1.dll

Declaration

[SRCategory(ReportStringId.CatAppearance)]
public virtual Color BackColor { get; set; }
<SRCategory(ReportStringId.CatAppearance)>
Public Overridable Property BackColor As Color

Property Value

Type Description
Color

A Color object that represents the background color. The default value is Transparent.

The BackColor property specifies the control's background color, while the control's foreground color is specified by its XRControl.ForeColor property.

If the BackColor property's value is not set for the current report control, its value is obtained from its parent, or a parent of its parent and so on. Similarly, the BackColor value of the current control is applied to all its child report controls (if there are any in its XRControl.Controls collection), if their BackColor property value is not set. For more information on this concept, please refer to Appearance Properties.

Note

The BackColor property is not used by all descendants of the XRControl class. For example, the XRPageBreak class ignores the BackColor property.

See Also