Back to Devexpress

HeatmapCustomPaintEventArgs Class

corelibraries-devexpress-dot-xtracharts-dot-heatmap-178116f7.md

latest2.9 KB
Original Source

HeatmapCustomPaintEventArgs Class

Contains data for the HeatmapControl.CustomPaint event.

Namespace : DevExpress.XtraCharts.Heatmap

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public class HeatmapCustomPaintEventArgs :
    EventArgs
vb
Public Class HeatmapCustomPaintEventArgs
    Inherits EventArgs

HeatmapCustomPaintEventArgs is the data class for the following events:

Remarks

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

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

Namespace TestHeatmap
    Partial Public Class Form1
        Inherits Form

        Public Sub New()
            InitializeComponent()
            ' ...
            AddHandler heatmapControl1.CustomPaint, AddressOf heatmapControl1_CustomPaint
        End Sub
        Private Sub heatmapControl1_CustomPaint(ByVal sender As Object, ByVal e As HeatmapCustomPaintEventArgs)
            Using pen As New DXPen(Color.Red, 2)
                e.DXGraphics.DrawRectangle(pen, Me.heatmapControl1.Diagram.GetBounds())
            End Using
        End Sub
    End Class
End Namespace

Inheritance

Object EventArgs HeatmapCustomPaintEventArgs

See Also

HeatmapCustomPaintEventArgs Members

DevExpress.XtraCharts.Heatmap Namespace