BCGControlBar Pro for MFC
virtual CBCGPSize CBCGPChartVisualObject::OnCalcLegendKeySize ( CBCGPChartSeries pSeries,
int  nDataPointIndex 
)
virtual

Called to calculate legend key size.

Override this method in a derived class if you wish to customize appearance of legend keys.

You need to override CBCGPChartVisualObject::OnDrawChartLegendKey as well.

Parameters
pSeriesA pointer to a series whose legend key size should be calculated.
nDataPointIndexSpecifies data point index. It's greater or equal to zero if the legend key corresponds to a data point.
Returns
A legend key size.