Skip to main content
All docs
V24.1

HeatmapCustomPaintEventArgs Class

Contains data for the HeatmapControl.CustomPaint event.

Namespace: DevExpress.XtraCharts.Heatmap

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

public class HeatmapCustomPaintEventArgs :
    EventArgs

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
EventArgs
HeatmapCustomPaintEventArgs
See Also