BCGControlBar Pro for MFC
BOOL CBCGPChartLegendVisualObject::RemoveLegendEntry ( CBCGPChartSeries pSeries,
int  nDataPointIndex = -1 
)

Removes an entry from legend

Call this method to remove an entry from legend. You can call this method from the OnLegendContentCreatedhandler(). If this method is called from other place, you need to call InvalidateLegendSize().

Parameters
pSeriesa pointer to related series
nDataPointIndexspecifies data point index