Skip to main content
All docs
V23.2

HeatmapCustomPaintEventArgs Class

Contains data for the HeatmapControl.CustomPaint event.

Namespace: DevExpress.XtraCharts.Heatmap

Assembly: DevExpress.XtraCharts.v23.2.dll

NuGet Package: DevExpress.Charts

Declaration

public class HeatmapCustomPaintEventArgs

Remarks

The following example shows how to handle the HeatmapControl.CustomPaint event to draw a custom frame on a heatmap surface:

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

namespace TestHeatmap {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
            // ...
            heatmapControl1.CustomPaint += heatmapControl1_CustomPaint;
        }
        void heatmapControl1_CustomPaint(object sender, HeatmapCustomPaintEventArgs e) {
            using(DXPen pen = new DXPen(Color.Red, 2)) {
                e.DXGraphics.DrawRectangle(pen, this.heatmapControl1.Diagram.GetBounds());    
            }
        }
    }
}

Inheritance

Object
HeatmapCustomPaintEventArgs
See Also