Back to Devexpress

HeatmapControl.Diagram Property

windowsforms-devexpress-dot-xtracharts-dot-heatmap-dot-heatmapcontrol-1f345bb7.md

latest2.5 KB
Original Source

HeatmapControl.Diagram Property

Gets or sets the Heatmap Control’s diagram.

Namespace : DevExpress.XtraCharts.Heatmap

Assembly : DevExpress.XtraCharts.v25.2.UI.dll

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
public HeatmapDiagram Diagram { get; }
vb
Public ReadOnly Property Diagram As HeatmapDiagram

Property Value

TypeDescription
HeatmapDiagram

Contains diagram options.

|

Remarks

A diagram is the Heatmap Control’s area that is used to draw heatmap cells.

The following images show the heatmap diagram with different appearance settings:

A diagram with default settings: A diagram’s BackColor=LightGray; BorderColor=Gray:

csharp
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;
        }
    }
}
vb
Imports DevExpress.XtraCharts
Imports DevExpress.XtraCharts.Heatmap
Imports System.Drawing

Namespace HeatmapChartApp
    Public Partial Class Form1
        Inherits Form

        Public Sub New()
            InitializeComponent()
            '...
            heatmap.Diagram.BorderVisible = True
            heatmap.Diagram.BorderColor = Color.Gray
            heatmap.Diagram.BackColor = Color.LightGray
        End Sub
    End Class
End Namespace

See Also

HeatmapControl Class

HeatmapControl Members

DevExpress.XtraCharts.Heatmap Namespace