BCGControlBar Pro for MFC
int CBCGPChartVisualObject::GetVisibleSeriesCount ( CRuntimeClass *  pImplType = NULL)

Returns the number of visible series.

A series is counted as visible if CBCGPChartSeries::m_bVisible flag is TRUE and the series implementation is not NULL or equal to pImplType.

You can call this method to determine the number of visible series with specific implementation type, for example

GetVisibleSeriesCount(RUNTIME_CLASS(CBCGPLineChartImpl));

will return the number of line charts on the diagram.

Parameters
pImplTypeA pointer to a runtime class of chart implementation. Can be NULL to calculate all visible series.