Skip to main content

ChartControl.BackColor Property

Gets or sets the chart control’s background color.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.UI.dll

NuGet Package: DevExpress.Win.Charts

Declaration

public Color BackColor { get; set; }

Property Value

Type Description
Color

A Color value which specifies the chart control’s background color.

Remarks

The BackColor property specifies the background color of the chart control.

Note that the chart control’s constituent elements such as a diagram or legend have their own background-related properties which when set override the corresponding properties of the chart control.

White LavenderBlush
ChartControl_BackGroundColor-White.gif ChartControl_BackGroundColor-LavenderBlush.gif

Example

using System.Drawing;
//...
chartControl1.BackColor = Color.LavenderBlush;

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

See Also