BCGControlBar Pro for MFC
CBCGPChartSeries* CBCGPChartVisualObject::GetSeries ( int  nSeries,
BOOL  bAllocate = FALSE 
)

Returns a pointer to a series located at the specified index.

Call this method to retrieve a pointer to a series located at the specified index.

  • If bAllocate is TRUE a new series is created and returned if a series at the specified index is not found. The new series is created according to the current chart category (set by SetChartType, or line series if SetChartType() has not been called).
  • If bAllocate is FALSE, and a series at the specified index is not found, the return value is NULL.
Parameters
nSeriesZero-based series index.
bAllocateSpecifies whether allocate a new series, or not if a series at the specified index does not exist.