Back to Devexpress

TcxGridChartDiagram.OnCustomDrawLegend Event

vcl-cxgridchartview-dot-tcxgridchartdiagram-62179050.md

latest1.3 KB
Original Source

TcxGridChartDiagram.OnCustomDrawLegend Event

Occurs every time a chart legend is about to be drawn.

Declaration

delphi
property OnCustomDrawLegend: TcxGridChartDiagramLegendCustomDrawEvent read; write;

Remarks

As with other custom draw events it provides a canvas for the grid control (the ACanvas parameter), ViewInfo (the AViewInfo parameter and its Bounds property) to get the bounding rectangle of the painted element (in this case the chart legend). Sender is normally the element that caused the repaint. The ADone parameter’s value is initially set to False. Set it to True to prevent the grid from performing the default painting and painting over any custom painting.

Note

The Chart View’s OnCustomDrawLegend event can override the diagram’s OnCustomDrawLegend event since the former is fired after the latter.

See Also

TcxGridChartDiagram.Legend Property

TcxGridChartDiagram.OnCustomDrawLegendItem Event

TcxGridChartDiagram Class

TcxGridChartDiagram Members

cxGridChartView Unit