Skip to main content
All docs
V23.2

HeatmapDiagram.BackColor Property

Gets or sets the color used to fill the heatmap diagram.

Namespace: DevExpress.XtraCharts.Heatmap

Assembly: DevExpress.XtraCharts.v23.2.dll

NuGet Package: DevExpress.Charts

Declaration

public Color BackColor { get; set; }

Property Value

Type Description
Color

The color that is used to paint the heatmap diagram background.

Example

The following example specifies the Heatmap Control’s diagram background and border colors:

A heatmap diagram with default settings

using DevExpress.XtraCharts;
using DevExpress.XtraCharts.Heatmap;
using System.Drawing;

namespace HeatmapChartApp {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
            //...
            heatmap.Diagram.BorderVisible = true;
            heatmap.Diagram.BorderColor = Color.Gray;
            heatmap.Diagram.BackColor = Color.LightGray;
        }
    }
}
See Also