Skip to main content

TcxGridChartAreaDiagram.OnCustomDrawValueArea Event

Occurs when a value area for a data marker needs to be painted.

Declaration

property OnCustomDrawValueArea: TcxGridChartAreaDiagramValueAreaCustomDrawEvent read; write;

Remarks

In area diagrams, data markers are painted in two passes. An area diagram’s value area is drawn first, and then value markers and lines that connect adjacent value points are painted. You can handle the OnCustomDrawValueArea event to custom paint a value area for each data marker. To custom paint value markers and lines connecting adjacent value points after the first pass, handle the diagram’s OnCustomDrawValue or the corresponding series.

The Sender parameter provides access to the area diagram that caused a value area to be repainted;

The ACanvas and AViewInfo parameters provide access to the canvas and ViewInfo of the grid control. The bounding rectangle of the value area being painted can be obtained via the AViewInfo.Bounds property.

As with other custom drawing events, the ADone parameter initial value is False.

See Also