Skip to main content

TcxGridChartView.OnCustomDrawLegendItem Event

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

Declaration

property OnCustomDrawLegendItem: TcxGridChartLegendItemCustomDrawEvent 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 legend item). Sender is usually the element that caused the repaint. The ADone parameter’s value is initially False. Set it to True to tell the grid that you have chosen to custom draw the legend item.

Note

The Chart View’s OnCustomDrawLegendItem event can override the diagram’s OnCustomDrawLegendItem event since the former occurs after the latter.

See Also