IChartTrendLines.Item

Syntax

Item(Index: Integer): IChartTrendLine;

Parameters

Index. Trend line number. Numbering starts with zero.

Description

The Item property enables the user to determine settings of a specific trend line.

Example

This example assumes that there is the Chart object of the IChart type.

Sub TrendLine;
Var
    Chart: IChart;
    Trend: IChartTrendLine;
Begin
    Trend := Chart.Series.Item(
0).TrendLines.Item(0);
    Trend.TrendType := 
1 As ChartTrendType;
End Sub TrendLine;

After executing the example the type of the trend line is changed to logarithmic.

See also:

IChartTrendLines