ICustomToolSeries.Series
ICustomToolSeries

property Series: OleVariant;

Type Library
TeeChartx

Description
The Series array property is the list of Series to which Tool belongs. A Tool will only be associated with these series points.

Series property can be nil (none) applying the Tool globally to the Chart. Series are numeric values:

The values increment 1 for each Series starting at Series = 0.

Example [Visual Basic]

TChart1.Tools.Items(0).asNearest.Series = 0 'Series0

Example [Visual C++]

VARIANT TheSeries;

TheSeries.vt=VT_I2;

TheSeries.intVal=0;

m_Chart1.GetTools().GetItems(0).GetAsNearest().SetSeries(TheSeries);

Alternatively use the Series by passing it as an interface.

Example [Visual Basic]

TChart1.Tools.Items(0).asNearest.Series = TChart1.Series(0)

Example [Visual C++]

VARIANT TheSeries;

CSeries SeriesZero=m_Chart1.GetSeries(0);

TheSeries.pdispVal=SeriesZero;

m_Chart1.GetTools().GetItems(0).GetAsNearest().SetSeries(TheSeries);