Item(Index: Integer): IChartTrendLine;
Index. Trend line number. Numbering starts with zero.
The Item property enables the user to determine settings of a specific trend line.
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: