TCustomChart.OnGetLegendPos

TCustomChart.OnGetLegendPos
TCustomChart

property OnGetLegendPos: TOnGetLegendPos;

Unit
Chart

Description
An OnGetLegendPos event occurs whenever a Legend item is going to be displayed.

You can used this event to force specific X , Y and / or XColor Legend pixel coordinates.

The Chart component calculates the default X,Y and XColor parameters before calling this event.

The Sender parameter is the Chart component that originated the event.

The Index parameter corresponds to the specific Legend item number going to be displayed. It can be either an Active Series Title or a Series point index, depending on the TChartLegend.LegendStyle property.